Skip to content

Commit 21af0b7

Browse files
gijsiomsariisik
authored andcommitted
Revert "add gps coordinates to the pygate json status"
This reverts commit 9e3de606aa6023bce71ade976253b6e1b85605af.
1 parent c046f5f commit 21af0b7

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

esp32/pygate/lora_pkt_fwd/lora_pkt_fwd.c

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1392,12 +1392,7 @@ void TASK_lora_gw(void *pvParameters) {
13921392

13931393
/* generate a JSON report (will be sent to server by upstream thread) */
13941394
pthread_mutex_lock(&mx_stat_rep);
1395-
if(gps_fake_enable){
1396-
snprintf(status_report, STATUS_SIZE, "\"stat\":{\"time\":\"%s\",\"lati\":%.5f,\"long\":%.5f,\"alti\":%i,\"rxnb\":%u,\"rxok\":%u,\"rxfw\":%u,\"ackr\":%.1f,\"dwnb\":%u,\"txnb\":%u}", stat_timestamp, cp_gps_coord.lat, cp_gps_coord.lon, cp_gps_coord.alt, cp_nb_rx_rcv, cp_nb_rx_ok, cp_up_pkt_fwd, 100.0 * up_ack_ratio, cp_dw_dgram_rcv, cp_nb_tx_ok);
1397-
MSG_WARN("sendint GPS coordingats");
1398-
}else{
1399-
snprintf(status_report, STATUS_SIZE, "\"stat\":{\"time\":\"%s\",\"rxnb\":%u,\"rxok\":%u,\"rxfw\":%u,\"ackr\":%.1f,\"dwnb\":%u,\"txnb\":%u}", stat_timestamp, cp_nb_rx_rcv, cp_nb_rx_ok, cp_up_pkt_fwd, 100.0 * up_ack_ratio, cp_dw_dgram_rcv, cp_nb_tx_ok);
1400-
}
1395+
snprintf(status_report, STATUS_SIZE, "\"stat\":{\"time\":\"%s\",\"rxnb\":%u,\"rxok\":%u,\"rxfw\":%u,\"ackr\":%.1f,\"dwnb\":%u,\"txnb\":%u}", stat_timestamp, cp_nb_rx_rcv, cp_nb_rx_ok, cp_up_pkt_fwd, 100.0 * up_ack_ratio, cp_dw_dgram_rcv, cp_nb_tx_ok);
14011396
report_ready = true;
14021397
pthread_mutex_unlock(&mx_stat_rep);
14031398
}

0 commit comments

Comments
 (0)