diff options
author | Skorpionm <85568270+Skorpionm@users.noreply.github.com> | 2021-08-29 16:05:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-08-29 16:05:15 +0300 |
commit | 663dbbfe9f8e7c868310e3500be136e4f51d3979 (patch) | |
tree | 2afc2aecb9d61168fa429bc5d3c3d137a226d8f1 /applications/subghz/subghz.c | |
parent | 0a8a944e100c79432773ef3b6e749ab065e46cd1 (diff) |
SubGhz: frequency hopping mode (#671)
* SubGhz: fix assert on worker double stop.
* SubGhz: add hopping mode (315.00, 433.92, 868.00)
* SubGhz: add support for new alarms on the keelog protocol
* SubGhz: update te in princeton protocol
* SubGhz: move static to tests, rename sniffer to hopper/auto, remove delay from timer thread, optimize locking strategy.
Co-authored-by: Aleksandr Kutuzov <alleteam@gmail.com>
Diffstat (limited to 'applications/subghz/subghz.c')
-rw-r--r-- | applications/subghz/subghz.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/applications/subghz/subghz.c b/applications/subghz/subghz.c index acc054ab..23bab9a5 100644 --- a/applications/subghz/subghz.c +++ b/applications/subghz/subghz.c @@ -121,9 +121,11 @@ SubGhz* subghz_alloc() { subghz_test_packet_get_view(subghz->subghz_test_packet)); // Static send - subghz->subghz_static = subghz_static_alloc(); + subghz->subghz_test_static = subghz_test_static_alloc(); view_dispatcher_add_view( - subghz->view_dispatcher, SubGhzViewStatic, subghz_static_get_view(subghz->subghz_static)); + subghz->view_dispatcher, + SubGhzViewStatic, + subghz_test_static_get_view(subghz->subghz_test_static)); //init Worker & Protocol subghz->worker = subghz_worker_alloc(); @@ -155,7 +157,7 @@ void subghz_free(SubGhz* subghz) { // Static view_dispatcher_remove_view(subghz->view_dispatcher, SubGhzViewStatic); - subghz_static_free(subghz->subghz_static); + subghz_test_static_free(subghz->subghz_test_static); // Analyze view_dispatcher_remove_view(subghz->view_dispatcher, SubGhzViewAnalyze); |