code sanitzations

This commit is contained in:
Verkehrsrot 2019-07-22 22:00:39 +02:00
parent 79c20113a7
commit bdbf2db409
3 changed files with 4 additions and 3 deletions

View File

@ -165,7 +165,9 @@ void draw_page(time_t t, uint8_t page) {
char timeState, buff[16]; char timeState, buff[16];
uint8_t msgWaiting; uint8_t msgWaiting;
#if (HAS_GPS)
static bool wasnofix = true; static bool wasnofix = true;
#endif
// update counter (lines 0-1) // update counter (lines 0-1)
snprintf( snprintf(

View File

@ -53,8 +53,6 @@
#define HAS_BUTTON (39) // on board button #define HAS_BUTTON (39) // on board button
#define HAS_RGB_LED (0) // WS2812B RGB LED on GPIO0 #define HAS_RGB_LED (0) // WS2812B RGB LED on GPIO0
#define BOARD_HAS_PSRAM // use extra 4MB extern RAM
// GPS settings // GPS settings
#define HAS_GPS 1 // use on board GPS #define HAS_GPS 1 // use on board GPS
#define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M #define GPS_SERIAL 9600, SERIAL_8N1, GPIO_NUM_12, GPIO_NUM_15 // UBlox NEO 6M

View File

@ -306,7 +306,7 @@ void onEvent(ev_t ev) {
break; break;
case EV_TXSTART: case EV_TXSTART:
if (!(LMIC.opmode & OP_JOINING)) if (!(LMIC.opmode & OP_JOINING)) {
#if (TIME_SYNC_LORASERVER) #if (TIME_SYNC_LORASERVER)
// if last packet sent was a timesync request, store TX time // if last packet sent was a timesync request, store TX time
if (LMIC.pendTxPort == TIMEPORT) if (LMIC.pendTxPort == TIMEPORT)
@ -314,6 +314,7 @@ void onEvent(ev_t ev) {
else else
#endif #endif
strcpy_P(buff, PSTR("TX START")); strcpy_P(buff, PSTR("TX START"));
}
break; break;
case EV_TXCANCELED: case EV_TXCANCELED: