diff options
-rw-r--r-- | lora_pkt_fwd/src/lora_pkt_fwd.c | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/lora_pkt_fwd/src/lora_pkt_fwd.c b/lora_pkt_fwd/src/lora_pkt_fwd.c index a3f8814..474cf17 100644 --- a/lora_pkt_fwd/src/lora_pkt_fwd.c +++ b/lora_pkt_fwd/src/lora_pkt_fwd.c @@ -322,10 +322,6 @@ static uint16_t crc16(const uint8_t * data, unsigned size); static double difftimespec(struct timespec end, struct timespec beginning); -static void gps_process_sync(void); - -static void gps_process_coords(void); - /* threads */ void thread_up(void); void thread_down(void); @@ -1322,8 +1318,8 @@ static int send_tx_ack(uint8_t token_h, uint8_t token_l, enum jit_error_e error) void usage(char *proc_name) { - fprintf(stderr, "Usage: %s [-l logfile]\n", proc_name); - exit(1); + fprintf(stderr, "Usage: %s [-l logfile]\n", proc_name); + exit(1); } static char *short_options = "l:h"; @@ -1704,7 +1700,7 @@ int main(int argc, char** argv) sighupact.sa_flags = 0; sighupact.sa_handler = sighup_handler; sigaction(SIGHUP, &sighupact, NULL); /* rotate logfile on HUP */ - signal(SIGPIPE, SIG_IGN); /* ignore writes after closing socket */ + signal(SIGPIPE, SIG_IGN); /* ignore writes after closing socket */ /* main loop task : statistics collection */ @@ -1837,12 +1833,12 @@ int main(int argc, char** argv) uint8_t page = 0; lgw_get_cur_page(&page); - if (page != 2) { + if (page != 2) { //quit rather than reset the page. We don't know if this was on purpose or not. - exit_sig = true; + exit_sig = true; MSG("WARNING: lgw page was unexpectedly changed, process is exiting.\n"); break; - } + } /* read the currrent temperature */ |