[FL-1363] BLE GUI tests (#505)
* bt: introduce bt CLI commands * api-hal-bt: add get rssi * bt: fix cli commands * bt: fix typos * bt: refacrote bt test names * ble gui continue * bt: rework carrier test gui * bt: rework send packets test gui * bt: rework receive packets test * api-hal-bt: change rssi return * bt: refactore bt gui Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com> Co-authored-by: SG <who.just.the.doctor@gmail.com>
This commit is contained in:
@@ -118,7 +118,7 @@ float api_hal_bt_get_rssi() {
|
||||
uint8_t agc = rssi_raw[2] & 0xFF;
|
||||
int rssi = (rssi_raw[1] << 8 & 0xFF00) + (rssi_raw[1] & 0xFF);
|
||||
if(rssi == 0 || agc > 11) {
|
||||
val = 127;
|
||||
val = -127.0;
|
||||
} else {
|
||||
val = agc * 6.0f - 127.0f;
|
||||
while(rssi > 30) {
|
||||
|
Reference in New Issue
Block a user