code sanitizations (compiler warnings)
This commit is contained in:
parent
e94c73295b
commit
88f40e5d35
@ -450,7 +450,7 @@ void myEventCallback(void *pUserData, ev_t ev) {
|
||||
snprintf(lmic_event_msg, LMIC_EVENTMSG_LEN, "%-16s",
|
||||
evNames[ev] + 3); // +3 to strip "EV_"
|
||||
else
|
||||
snprintf(lmic_event_msg, LMIC_EVENTMSG_LEN, "LMIC event %-04u ", ev);
|
||||
snprintf(lmic_event_msg, LMIC_EVENTMSG_LEN, "LMIC event %-4u ", ev);
|
||||
|
||||
// process current event message
|
||||
switch (ev) {
|
||||
@ -468,6 +468,9 @@ void myEventCallback(void *pUserData, ev_t ev) {
|
||||
// replace descriptor from library with more descriptive term
|
||||
snprintf(lmic_event_msg, LMIC_EVENTMSG_LEN, "%-16s", "JOIN_WAIT");
|
||||
break;
|
||||
|
||||
default:
|
||||
break;
|
||||
}
|
||||
|
||||
// add Lora send queue length to display
|
||||
|
@ -194,7 +194,7 @@ int recv_timesync_ans(const uint8_t buf[], const uint8_t buf_len) {
|
||||
uint32_t timestamp_sec, *timestamp_ptr;
|
||||
|
||||
// extract 1 byte timezone from buffer (one step being 15min * 60s = 900s)
|
||||
uint32_t timezone_sec = buf[0] * 900;
|
||||
// uint32_t timezone_sec = buf[0] * 900; // for future use
|
||||
buf++;
|
||||
|
||||
// extract 4 bytes timestamp from buffer
|
||||
|
Loading…
Reference in New Issue
Block a user