1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 12:42:30 +04:00

fm238 mod for sommer add manually for rare cases

This commit is contained in:
MX
2024-07-08 08:41:45 +03:00
parent 92c997b9a7
commit f21ba616cd
2 changed files with 26 additions and 2 deletions

View File

@@ -83,6 +83,8 @@ typedef enum {
SetTypeCenturion433, SetTypeCenturion433,
SetTypeSommer_FM_434, SetTypeSommer_FM_434,
SetTypeSommer_FM_868, SetTypeSommer_FM_868,
SetTypeSommer_FM238_434,
SetTypeSommer_FM238_868,
SetTypeStilmatic, SetTypeStilmatic,
SetTypeIronLogic, SetTypeIronLogic,
SetTypeDeaMio433, SetTypeDeaMio433,

View File

@@ -30,6 +30,8 @@ static const char* submenu_names[SetTypeMAX] = {
[SetTypeCenturion433] = "KL: Centurion 433MHz", [SetTypeCenturion433] = "KL: Centurion 433MHz",
[SetTypeSommer_FM_434] = "KL: Sommer 434MHz", [SetTypeSommer_FM_434] = "KL: Sommer 434MHz",
[SetTypeSommer_FM_868] = "KL: Sommer 868MHz", [SetTypeSommer_FM_868] = "KL: Sommer 868MHz",
[SetTypeSommer_FM238_434] = "KL: Sommer fm2 434Mhz",
[SetTypeSommer_FM238_868] = "KL: Sommer fm2 868Mhz",
[SetTypeStilmatic] = "KL: Stilmatic 433MHz", [SetTypeStilmatic] = "KL: Stilmatic 433MHz",
[SetTypeIronLogic] = "KL: IronLogic 433MHz", [SetTypeIronLogic] = "KL: IronLogic 433MHz",
[SetTypeDeaMio433] = "KL: DEA Mio 433MHz", [SetTypeDeaMio433] = "KL: DEA Mio 433MHz",
@@ -446,7 +448,7 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
.type = GenKeeloq, .type = GenKeeloq,
.mod = "FM476", .mod = "FM476",
.freq = 434420000, .freq = 434420000,
.keeloq.serial = (key & 0x0000FFFF) | 0x07150000, .keeloq.serial = (key & 0x0000FFFF) | 0x01700000,
.keeloq.btn = 0x02, .keeloq.btn = 0x02,
.keeloq.cnt = 0x03, .keeloq.cnt = 0x03,
.keeloq.manuf = "Sommer(fsk476)"}; .keeloq.manuf = "Sommer(fsk476)"};
@@ -456,7 +458,27 @@ bool subghz_scene_set_type_on_event(void* context, SceneManagerEvent event) {
.type = GenKeeloq, .type = GenKeeloq,
.mod = "FM476", .mod = "FM476",
.freq = 868800000, .freq = 868800000,
.keeloq.serial = (key & 0x0000FFFF) | 0x07150000, .keeloq.serial = (key & 0x0000FFFF) | 0x01700000,
.keeloq.btn = 0x02,
.keeloq.cnt = 0x03,
.keeloq.manuf = "Sommer(fsk476)"};
break;
case SetTypeSommer_FM238_434:
gen_info = (GenInfo){
.type = GenKeeloq,
.mod = "FM238",
.freq = 434420000,
.keeloq.serial = (key & 0x0000FFFF) | 0x00000000,
.keeloq.btn = 0x02,
.keeloq.cnt = 0x03,
.keeloq.manuf = "Sommer(fsk476)"};
break;
case SetTypeSommer_FM238_868:
gen_info = (GenInfo){
.type = GenKeeloq,
.mod = "FM238",
.freq = 868800000,
.keeloq.serial = (key & 0x0000FFFF) | 0x00000000,
.keeloq.btn = 0x02, .keeloq.btn = 0x02,
.keeloq.cnt = 0x03, .keeloq.cnt = 0x03,
.keeloq.manuf = "Sommer(fsk476)"}; .keeloq.manuf = "Sommer(fsk476)"};