Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 4bc902b

Browse files
author
Islam Wahdan
authored
Merge pull request #25 from pycom/lorawan_fixes
modlora: Reverted the rx spread factor in stats
2 parents e0c3cd8 + 339500a commit 4bc902b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

esp32/mods/modlora.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2090,8 +2090,7 @@ STATIC mp_obj_t lora_stats(mp_obj_t self_in) {
20902090
stats_tuple[0] = mp_obj_new_int_from_uint(self->rx_timestamp);
20912091
stats_tuple[1] = mp_obj_new_int(self->rssi);
20922092
stats_tuple[2] = mp_obj_new_float(snr);
2093-
//stats_tuple[3] = mp_obj_new_int(self->sfrx);
2094-
stats_tuple[3] = mp_obj_new_int(Radio.GetStatus());
2093+
stats_tuple[3] = mp_obj_new_int(self->sfrx);
20952094
stats_tuple[4] = mp_obj_new_int(self->sftx);
20962095
stats_tuple[5] = mp_obj_new_int(self->tx_trials);
20972096
stats_tuple[6] = mp_obj_new_int(self->tx_power);

0 commit comments

Comments
 (0)