subghz upds

This commit is contained in:
RogueMaster
2022-09-17 06:44:24 -04:00
parent ab2ebb1680
commit f228bf7989
3 changed files with 11 additions and 7 deletions

View File

@@ -15,11 +15,11 @@
<details> <details>
<summary><B>TO DO</b></summary><br/> <summary><B>TO DO</b></summary><br/>
- Settings: Rename from SD `dolphin/name.txt` [(Thanks to E_Surge)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/259)
- SubGHz: [Add settings to subghz read functionality to allow setting RSSI threshold (raw only) (By PolymerPrints)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/184) - SubGHz: [Add settings to subghz read functionality to allow setting RSSI threshold (raw only) (By PolymerPrints)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/184)
- [Decode RAW recordings #1667 (By qistoph)](https://github.com/flipperdevices/flipperzero-firmware/pull/1667) - [Decode RAW recordings #1667 (By qistoph)](https://github.com/flipperdevices/flipperzero-firmware/pull/1667)
- [Keynote BT plugin: long press on OK to switch between Space and Retur… #1729 (By coded-with-claws)](https://github.com/flipperdevices/flipperzero-firmware/pull/1729)
- [SubGhz: fix display information in the file if the frequenc… #1724 (By Skorpionm)](https://github.com/flipperdevices/flipperzero-firmware/pull/1724) - [SubGhz: fix display information in the file if the frequenc… #1724 (By Skorpionm)](https://github.com/flipperdevices/flipperzero-firmware/pull/1724)
- Settings: Rename from SD `dolphin/name.txt` [(Thanks to E_Surge)](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/259)
- [Keynote BT plugin: long press on OK to switch between Space and Retur… #1729 (By coded-with-claws)](https://github.com/flipperdevices/flipperzero-firmware/pull/1729)
- Lost To Faps: Settings: Favorite Game by holding UP on Desktop [Thanks to gotnull](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/57) - Lost To Faps: Settings: Favorite Game by holding UP on Desktop [Thanks to gotnull](https://github.com/RogueMaster/flipperzero-firmware-wPlugins/pull/57)
- Lost To Faps: Settings: Hold Down for Games Menu [(Thanks to ESurge)](https://github.com/ESurge/flipperzero-firmware-wPlugins) - Lost To Faps: Settings: Hold Down for Games Menu [(Thanks to ESurge)](https://github.com/ESurge/flipperzero-firmware-wPlugins)

View File

@@ -1,7 +1,7 @@
#include "../subghz_i.h" #include "../subghz_i.h"
#include "../views/receiver.h" #include "../views/receiver.h"
const NotificationSequence subghs_sequence_rx = { const NotificationSequence subghz_sequence_rx = {
&message_green_255, &message_green_255,
&message_vibro_on, &message_vibro_on,
@@ -14,7 +14,7 @@ const NotificationSequence subghs_sequence_rx = {
NULL, NULL,
}; };
const NotificationSequence subghs_sequence_rx_locked = { const NotificationSequence subghz_sequence_rx_locked = {
&message_green_255, &message_green_255,
&message_display_backlight_on, &message_display_backlight_on,
@@ -225,9 +225,9 @@ bool subghz_scene_receiver_on_event(void* context, SceneManagerEvent event) {
break; break;
case SubGhzNotificationStateRxDone: case SubGhzNotificationStateRxDone:
if(subghz->lock != SubGhzLockOn) { if(subghz->lock != SubGhzLockOn) {
notification_message(subghz->notifications, &subghs_sequence_rx); notification_message(subghz->notifications, &subghz_sequence_rx);
} else { } else {
notification_message(subghz->notifications, &subghs_sequence_rx_locked); notification_message(subghz->notifications, &subghz_sequence_rx_locked);
} }
subghz->state_notifications = SubGhzNotificationStateRx; subghz->state_notifications = SubGhzNotificationStateRx;
break; break;

View File

@@ -220,7 +220,11 @@ void subghz_dialog_message_show_only_rx(SubGhz* subghz) {
DialogMessage* message = dialog_message_alloc(); DialogMessage* message = dialog_message_alloc();
const char* header_text = "Transmission is blocked"; const char* header_text = "Transmission is blocked";
const char* message_text = "Frequency\nis outside of\ndefault range.\nCheck docs."; const char* message_text = "Transmission on\nthis frequency is\nrestricted in\nyour region";
if(!furi_hal_region_is_provisioned()) {
header_text = "Firmware update needed";
message_text = "Please update\nfirmware before\nusing this feature\nflipp.dev/upd";
}
dialog_message_set_header(message, header_text, 63, 3, AlignCenter, AlignTop); dialog_message_set_header(message, header_text, 63, 3, AlignCenter, AlignTop);
dialog_message_set_text(message, message_text, 0, 17, AlignLeft, AlignTop); dialog_message_set_text(message, message_text, 0, 17, AlignLeft, AlignTop);