Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/flipperzero-firmware.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorあく <alleteam@gmail.com>2021-07-07 00:23:59 +0300
committerGitHub <noreply@github.com>2021-07-07 00:23:59 +0300
commit607e873404d746c692c38482f03c54ed3edce26c (patch)
tree34e6084dcdf72e3c86414f4287b4d02c81445471 /applications/bt
parent54114553c1193bcea3c06873ca2121ad375d58de (diff)
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
Diffstat (limited to 'applications/bt')
-rw-r--r--[-rwxr-xr-x]applications/bt/bt_cli.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/applications/bt/bt_cli.c b/applications/bt/bt_cli.c
index 815e48f6..29d8d6a6 100755..100644
--- a/applications/bt/bt_cli.c
+++ b/applications/bt/bt_cli.c
@@ -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();
}