Only send phy stats *after* sending config parameter reply to master

This commit is contained in:
jacob.eva 2024-08-24 11:08:13 +01:00
parent 7f05a4fd9f
commit 36c90de9f8
No known key found for this signature in database
GPG Key ID: 0B92E083BBCCAA1E

View File

@ -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;
}
@ -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) {
@ -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) {