code sanitzations
This commit is contained in:
parent
79c20113a7
commit
bdbf2db409
@ -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(
|
||||
|
@ -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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user