Skip to content

Commit

Permalink
Only send phy stats *after* sending config parameter reply to master
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobeva committed Aug 24, 2024
1 parent 7f05a4f commit 36c90de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions RNode_Firmware_CE.ino
Original file line number Diff line number Diff line change
Expand Up @@ -712,8 +712,8 @@ void serialCallback(uint8_t sbyte) {
if (op_mode == MODE_HOST) selected_radio->setSignalBandwidth(bw);
selected_radio->updateBitrate();
sort_interfaces();
kiss_indicate_phy_stats(selected_radio);
kiss_indicate_bandwidth(selected_radio);
kiss_indicate_phy_stats(selected_radio);
}
interface = 0;
}
Expand Down Expand Up @@ -742,8 +742,8 @@ void serialCallback(uint8_t sbyte) {
if (op_mode == MODE_HOST) selected_radio->setSpreadingFactor(sf);
selected_radio->updateBitrate();
sort_interfaces();
kiss_indicate_phy_stats(selected_radio);
kiss_indicate_spreadingfactor(selected_radio);
kiss_indicate_phy_stats(selected_radio);
}
interface = 0;
} else if (command == CMD_CR) {
Expand All @@ -758,8 +758,8 @@ void serialCallback(uint8_t sbyte) {
if (op_mode == MODE_HOST) selected_radio->setCodingRate4(cr);
selected_radio->updateBitrate();
sort_interfaces();
kiss_indicate_phy_stats(selected_radio);
kiss_indicate_codingrate(selected_radio);
kiss_indicate_phy_stats(selected_radio);
}
interface = 0;
} else if (command == CMD_IMPLICIT) {
Expand Down

0 comments on commit 36c90de

Please sign in to comment.