alan broad
/
carbon_v5_arm_studio
arm studio build
Diff: src/commI2C.cpp
- Revision:
- 31:4539c212ecaa
- Parent:
- 28:2e22e364a162
diff -r d9df0092d050 -r 4539c212ecaa src/commI2C.cpp --- a/src/commI2C.cpp Wed Jul 29 01:25:20 2020 +0000 +++ b/src/commI2C.cpp Wed Jul 29 05:38:19 2020 +0000 @@ -29,9 +29,9 @@ //wake.mode(OpenDrain); wake.output(); wake = 1; - wait_ms(10); //proc uses interrupts on lora_wake, so don't need to wait,just pulse it + wait_us(10000); //proc uses interrupts on lora_wake, so don't need to wait,just pulse it wake = 0; //set wake lo - wait_ms(1); + wait_us(1000); wake.input(); //go back to input mode !!! wake pull hi if go back to input mode ??? return; } @@ -87,6 +87,7 @@ } return I2C_READ; default: + return I2C_READ; }; //switch timeout--; @@ -95,4 +96,4 @@ return I2C_WRITE; //just go to sleep } }; //while -} \ No newline at end of file +} \ No newline at end of file