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];
uint8_t msgWaiting;
#if (HAS_GPS)
static bool wasnofix = true;
#endif
// update counter (lines 0-1)
snprintf(

View File

@ -53,8 +53,6 @@
#define HAS_BUTTON (39) // on board button
#define HAS_RGB_LED (0) // WS2812B RGB LED on GPIO0
#define BOARD_HAS_PSRAM // use extra 4MB extern RAM
// GPS settings
#define HAS_GPS 1 // use on board GPS
#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;
case EV_TXSTART:
if (!(LMIC.opmode & OP_JOINING))
if (!(LMIC.opmode & OP_JOINING)) {
#if (TIME_SYNC_LORASERVER)
// if last packet sent was a timesync request, store TX time
if (LMIC.pendTxPort == TIMEPORT)
@ -314,6 +314,7 @@ void onEvent(ev_t ev) {
else
#endif
strcpy_P(buff, PSTR("TX START"));
}
break;
case EV_TXCANCELED: