Skip to content

Commit b03316d

Browse files
committed
add support for top44rbn remotes
1 parent d465877 commit b03316d

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
## Main changes
22
- Current API: 87.0
3+
* SubGHz: Add support for **Came Atomo (TOP44RBN)** remotes (thanks @mishamyte for recordings)
34
* SubGHz: Add **Elplast 18bit** static code protocol (hello Hackcat ^_^)
45
* SubGHz: Try to **decode BFT** (2 buttons remotes only) **on the fly** in regular Read mode (no more KL Unknown and all of that for free?!) (for 4 button remote follow docs [here](https://github.com/DarkFlippers/unleashed-firmware/blob/dev/documentation/SubGHzRemoteProg.md))
56
* SubGHz: **Tune Linear** (edited by @WillyJL in PR #919 #920) (add better EZCode support) and **Dickert MAHS** protocol decoders

lib/subghz/protocols/came_atomo.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,8 +418,11 @@ void subghz_protocol_decoder_came_atomo_feed(void* context, bool level, uint32_t
418418
ManchesterEvent event = ManchesterEventReset;
419419
switch(instance->decoder.parser_step) {
420420
case CameAtomoDecoderStepReset:
421-
if((!level) && (DURATION_DIFF(duration, subghz_protocol_came_atomo_const.te_long * 60) <
422-
subghz_protocol_came_atomo_const.te_delta * 40)) {
421+
// There are two known options for the header: 72K us (TOP42R, TOP44R) or 12k us (found on TOP44RBN)
422+
if((!level) && ((DURATION_DIFF(duration, subghz_protocol_came_atomo_const.te_long * 10) <
423+
subghz_protocol_came_atomo_const.te_delta * 20) ||
424+
(DURATION_DIFF(duration, subghz_protocol_came_atomo_const.te_long * 60) <
425+
subghz_protocol_came_atomo_const.te_delta * 40))) {
423426
//Found header CAME
424427
instance->decoder.parser_step = CameAtomoDecoderStepDecoderData;
425428
instance->decoder.decode_data = 0;

0 commit comments

Comments
 (0)