diff options
Diffstat (limited to 'martin/door/src')
| -rw-r--r-- | martin/door/src/hcs200.cpp | 4 | ||||
| -rw-r--r-- | martin/door/src/main.cpp | 2 |
2 files changed, 3 insertions, 3 deletions
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) | |||
| 166 | } | 166 | } |
| 167 | 167 | ||
| 168 | // pulse width according to chip datasheet | 168 | // pulse width according to chip datasheet |
| 169 | //#define PULSE_WIDTH 440 | 169 | #define PULSE_WIDTH 400 |
| 170 | 170 | ||
| 171 | // pulse width according to rtl_433 implementation | 171 | // pulse width according to rtl_433 implementation |
| 172 | // run width: rtl_433 -R 131 | 172 | // run width: rtl_433 -R 131 |
| 173 | #define PULSE_WIDTH 370 | 173 | //#define PULSE_WIDTH 370 |
| 174 | 174 | ||
| 175 | inline void HCS200_Keycode::send(bool value, std::function<void(int)> setOutput) | 175 | inline void HCS200_Keycode::send(bool value, std::function<void(int)> setOutput) |
| 176 | { | 176 | { |
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) | |||
| 252 | #endif | 252 | #endif |
| 253 | 253 | ||
| 254 | /* send twice */ | 254 | /* send twice */ |
| 255 | for (unsigned int i = 0; i < 1; i++) { | 255 | for (unsigned int i = 0; i < 10; i++) { |
| 256 | keycode.send([&](int value) { | 256 | keycode.send([&](int value) { |
| 257 | #ifdef RADIO_CC1101 | 257 | #ifdef RADIO_CC1101 |
| 258 | radio.setGDO0(value); | 258 | radio.setGDO0(value); |
