mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-13 07:18:35 -07:00
Squashed commit of the following:
commit 0b11b76df22abd1bbc18595e6472fe83acc65697 Author: Himura Kazuto <glagol15@gmail.com> Date: Sun Sep 18 17:25:38 2022 +0400 disable fran blink commit e9055f62b8131eca25c03dec9aab9e6a36548cb0 Author: Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> Date: Wed Aug 10 23:31:45 2022 +0400 frequency analyzer - better RSSI level trigger commit 95a3bc1371addb4903fc17f5fa4dda2966cab96a Author: Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> Date: Mon Aug 8 16:45:11 2022 +0400 Formatting commit 6062133170aac559fff037c8ff45d9e618030f12 Author: Alexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com> Date: Mon Aug 8 16:36:40 2022 +0400 New frequency analyzer
This commit is contained in:
@@ -71,4 +71,4 @@ void subghz_frequency_analyzer_worker_set_trigger_level(
|
||||
* @param instance SubGhzFrequencyAnalyzerWorker instance
|
||||
* @return RSSI trigger level
|
||||
*/
|
||||
float subghz_frequency_analyzer_worker_get_trigger_level(SubGhzFrequencyAnalyzerWorker* instance);
|
||||
float subghz_frequency_analyzer_worker_get_trigger_level(SubGhzFrequencyAnalyzerWorker* instance);
|
||||
|
||||
@@ -17,8 +17,18 @@ void subghz_scene_frequency_analyzer_on_enter(void* context) {
|
||||
}
|
||||
|
||||
bool subghz_scene_frequency_analyzer_on_event(void* context, SceneManagerEvent event) {
|
||||
UNUSED(context);
|
||||
UNUSED(event);
|
||||
SubGhz* subghz = context;
|
||||
if(event.type == SceneManagerEventTypeCustom) {
|
||||
if(event.event == SubGhzCustomEventSceneAnalyzerLock) {
|
||||
notification_message(subghz->notifications, &sequence_set_green_255);
|
||||
notification_message(subghz->notifications, &sequence_set_vibro_on);
|
||||
return true;
|
||||
} else if(event.event == SubGhzCustomEventSceneAnalyzerUnlock) {
|
||||
notification_message(subghz->notifications, &sequence_reset_rgb);
|
||||
notification_message(subghz->notifications, &sequence_reset_vibro);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user