From 8f203f47d9e1eea937bcade5eb126ee1fa31ae2c Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Sat, 5 Jul 2025 17:48:30 +0300 Subject: [PATCH] comunello add manually support --- .../main/subghz/helpers/subghz_custom_event.h | 2 ++ .../subghz/scenes/subghz_scene_set_type.c | 22 +++++++++++++++++++ 2 files changed, 24 insertions(+) diff --git a/applications/main/subghz/helpers/subghz_custom_event.h b/applications/main/subghz/helpers/subghz_custom_event.h index bd8dee161..bdd5f849d 100644 --- a/applications/main/subghz/helpers/subghz_custom_event.h +++ b/applications/main/subghz/helpers/subghz_custom_event.h @@ -79,6 +79,8 @@ typedef enum { SetTypeDoorHan_433_92, SetTypeBeninca433, SetTypeBeninca868, + SetTypeComunello433, + SetTypeComunello868, SetTypeAllmatic433, SetTypeAllmatic868, SetTypeCenturion433, diff --git a/applications/main/subghz/scenes/subghz_scene_set_type.c b/applications/main/subghz/scenes/subghz_scene_set_type.c index 3155f9f1e..f70aec803 100644 --- a/applications/main/subghz/scenes/subghz_scene_set_type.c +++ b/applications/main/subghz/scenes/subghz_scene_set_type.c @@ -25,6 +25,8 @@ static const char* submenu_names[SetTypeMAX] = { [SetTypeDoorHan_433_92] = "KL: DoorHan 433MHz", [SetTypeBeninca433] = "KL: Beninca 433MHz", [SetTypeBeninca868] = "KL: Beninca 868MHz", + [SetTypeComunello433] = "KL: Comunello 433MHz", + [SetTypeComunello868] = "KL: Comunello 868MHz", [SetTypeAllmatic433] = "KL: Allmatic 433MHz", [SetTypeAllmatic868] = "KL: Allmatic 868MHz", [SetTypeCenturion433] = "KL: Centurion 433MHz", @@ -400,6 +402,26 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) { .keeloq.cnt = 0x05, .keeloq.manuf = "Beninca"}; break; + case SetTypeComunello433: + gen_info = (GenInfo){ + .type = GenKeeloq, + .mod = "AM650", + .freq = 433920000, + .keeloq.serial = key & 0x00FFFFFF, + .keeloq.btn = 0x08, + .keeloq.cnt = 0x05, + .keeloq.manuf = "Comunello"}; + break; + case SetTypeComunello868: + gen_info = (GenInfo){ + .type = GenKeeloq, + .mod = "AM650", + .freq = 868460000, + .keeloq.serial = key & 0x00FFFFFF, + .keeloq.btn = 0x08, + .keeloq.cnt = 0x05, + .keeloq.manuf = "Comunello"}; + break; case SetTypeAllmatic433: gen_info = (GenInfo){ .type = GenKeeloq,