summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarsh Sharma <harsh.sharma@multitech.com>2020-12-28 16:17:00 -0600
committerHarsh Sharma <harsh.sharma@multitech.com>2020-12-28 16:17:00 -0600
commitf2db5693ba2f4ad15f0b5ea206a43706d2cf4019 (patch)
treea7189074a0c5bddfd7235431fbadc7b617de2ed1
parent39a368d7348032e7ff61f8cb08218cd455708f77 (diff)
parentcc6c0dfd5c48d730728a22a175b584d471b66420 (diff)
downloadpacket_forwarder_mtac_full-f2db5693ba2f4ad15f0b5ea206a43706d2cf4019.tar.gz
packet_forwarder_mtac_full-f2db5693ba2f4ad15f0b5ea206a43706d2cf4019.tar.bz2
packet_forwarder_mtac_full-f2db5693ba2f4ad15f0b5ea206a43706d2cf4019.zip
Merge branch 'add-new-gpsd' into 'master' 4.0.24.0.1-mts-12
Unused variable cleanup See merge request !3
-rw-r--r--lora_pkt_fwd/src/lora_pkt_fwd.c16
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 */