Fix SubGhz test views erratic behavior on mode switch. New bootloader image. (#669)

* Assets: add bootloader DFU icon.
* SubGhz: locking model in test views, wait for calibration complete on frequency change.
This commit is contained in:
あく
2021-08-24 02:52:59 +03:00
committed by GitHub
parent 153666f73f
commit dd8a90957f
8 changed files with 362 additions and 312 deletions

View File

@@ -273,6 +273,11 @@ uint32_t furi_hal_subghz_set_frequency(uint32_t value) {
uint32_t real_frequency = cc1101_set_frequency(device, value);
cc1101_calibrate(device);
while(true) {
CC1101Status status = cc1101_get_status(device);
if (status.STATE == CC1101StateIDLE) break;
}
furi_hal_spi_device_return(device);
return real_frequency;