From 01a1767f61d43c5b2955553c5c45630a0451b1dc Mon Sep 17 00:00:00 2001 From: MX <10697207+xMasterX@users.noreply.github.com> Date: Mon, 15 Jul 2024 04:45:45 +0300 Subject: [PATCH] upd subghz js module by Willy-JL --- .../system/js_app/modules/js_subghz/js_subghz.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/applications/system/js_app/modules/js_subghz/js_subghz.c b/applications/system/js_app/modules/js_subghz/js_subghz.c index dc93867de..f0e21c1ff 100644 --- a/applications/system/js_app/modules/js_subghz/js_subghz.c +++ b/applications/system/js_app/modules/js_subghz/js_subghz.c @@ -334,7 +334,17 @@ static void js_subghz_transmit_file(struct mjs* mjs) { } else { // Simulate holding button by default if(!repeat) { - repeat = 10; + if(furi_string_equal(temp_str, "CAME Atomo") || + furi_string_equal(temp_str, "CAME TWEE") || + furi_string_equal(temp_str, "Hormann HSM") || + furi_string_equal(temp_str, "Nice FloR-S") || + furi_string_equal(temp_str, "Power Smart")) { + // These protocols send multiple frames/packets for each "repeat" + // Just 1 full repeat should be sufficient + repeat = 1; + } else { + repeat = 10; + } } // Pass repeat value to protocol layer flipper_format_insert_or_update_uint32(fff_file, "Repeat", &repeat, 1);