New frequency analyzer

This commit is contained in:
Alexey 'Cluster' Avdyukhin
2022-08-05 13:53:27 +04:00
parent ac1a53dbf8
commit 53b5b7b9df
3 changed files with 187 additions and 42 deletions

View File

@@ -17,16 +17,8 @@ void subghz_scene_frequency_analyzer_on_enter(void* context) {
}
bool subghz_scene_frequency_analyzer_on_event(void* context, SceneManagerEvent event) {
SubGhz* subghz = context;
if(event.type == SceneManagerEventTypeCustom) {
if(event.event == SubGhzCustomEventSceneAnalyzerLock) {
notification_message(subghz->notifications, &sequence_set_green_255);
return true;
} else if(event.event == SubGhzCustomEventSceneAnalyzerUnlock) {
notification_message(subghz->notifications, &sequence_reset_rgb);
return true;
}
}
UNUSED(context);
UNUSED(event);
return false;
}