From 812c9a230aabb45cb7cf6f8a2402c758ade079c3 Mon Sep 17 00:00:00 2001 From: manuel Date: Wed, 3 Mar 2021 20:45:01 +0100 Subject: Change pulsewidth --- martin/door/src/hcs200.cpp | 4 ++-- martin/door/src/main.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'martin/door/src') diff --git a/martin/door/src/hcs200.cpp b/martin/door/src/hcs200.cpp index d7e914f..eb69091 100644 --- a/martin/door/src/hcs200.cpp +++ b/martin/door/src/hcs200.cpp @@ -166,11 +166,11 @@ void HCS200_Keycode::print(Print &stream) } // pulse width according to chip datasheet -//#define PULSE_WIDTH 440 +#define PULSE_WIDTH 400 // pulse width according to rtl_433 implementation // run width: rtl_433 -R 131 -#define PULSE_WIDTH 370 +//#define PULSE_WIDTH 370 inline void HCS200_Keycode::send(bool value, std::function setOutput) { diff --git a/martin/door/src/main.cpp b/martin/door/src/main.cpp index 223180e..da569b0 100644 --- a/martin/door/src/main.cpp +++ b/martin/door/src/main.cpp @@ -252,7 +252,7 @@ void serial_door_open(Print &stream) #endif /* send twice */ - for (unsigned int i = 0; i < 1; i++) { + for (unsigned int i = 0; i < 10; i++) { keycode.send([&](int value) { #ifdef RADIO_CC1101 radio.setGDO0(value); -- cgit v1.2.3