BLE: fix incorrect RSSI calculation. Firmware: don't mark system as tainted on test releases. (#567)

* BLE: correct RSSI calculation routine.
* Firmware: only guard boot on production releases.
* BLE: proper float formatting in cli
* BLE: faster RSSI refresh
This commit is contained in:
あく
2021-07-07 00:23:59 +03:00
committed by GitHub
parent 54114553c1
commit 607e873404
5 changed files with 18 additions and 8 deletions

8
applications/bt/bt_cli.c Executable file → Normal file
View File

@@ -63,15 +63,15 @@ void bt_cli_command_carrier_rx(Cli* cli, string_t args, void* context) {
}
printf("Receiving carrier at %hu channel\r\n", channel);
printf("Press CTRL+C to stop\r\n");
api_hal_bt_start_packet_rx(channel, 1);
float rssi_raw = 0;
while(!cli_cmd_interrupt_received(cli)) {
osDelay(250);
rssi_raw = api_hal_bt_get_rssi();
printf("RSSI: %03.1f dB\r", rssi_raw);
osDelay(1024 / 4);
printf("RSSI: %6.1f dB\r", api_hal_bt_get_rssi());
fflush(stdout);
}
api_hal_bt_stop_packet_test();
}