Anish updated the code to work with L152. RTC seems to causing issue. Will have to disable LSE.
Dependencies: mbed LoRaWAN-lib SX1276Lib
Diff: app/SerialDisplay.cpp
- Revision:
- 18:0a4de80c02a6
- Parent:
- 15:f4805eb13d73
- Child:
- 19:6f88d1cabaca
--- a/app/SerialDisplay.cpp Tue Jan 22 17:33:29 2019 +0000 +++ b/app/SerialDisplay.cpp Wed Jan 23 19:23:44 2019 +0000 @@ -108,11 +108,22 @@ } } -void SerialDisplayPrintDebugLine( uint16_t status ) +void SerialDisplayPrintDebugLine( char* str, uint8_t size ) { vt.SetCursorPos( 17, 27 ); vt.printf("DEBUG: "); - vt.printf( "%10d", status ); + for (int i = 0; i < size; i++) { + vt.printf( "%c", str[i] ); + } + + +} + +void SerialDisplayPrintDebugStatus( uint16_t status ) +{ + vt.SetCursorPos( 17, 27 ); + vt.printf("DEBUG STATUS: "); + vt.printf( "%d", status ); }