Skip to content

Commit f9d1fd5

Browse files
Jorge Riveralatchdevel
authored andcommitted
Increased mingaplen because Maclean protocol (ELECTRO DH 60.531/M) have pulses arround 3500 usecs
1 parent 771c4df commit f9d1fd5

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

pilight-usb-nano.ino

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
- Configurable RF transmitter input (TX_PIN); can be any digital pin, depends board (D5 as default).
1616
- Support to configure a digital output so that a led blinks at valid RF code reception.
1717
- Support to configure send of every 'space' before 'pulse', which stripped in previous version firmware.
18-
- Support to configure initial RX settings at boot, like as 's:20,200,3000,82000@'.
19-
- Support to configure show settings at boot, like as: 'v:20,200,3000,82000,2,1,1600@'.
18+
- Support to configure initial RX settings at boot, like as 's:20,200,4000,82000@'.
19+
- Support to configure show settings at boot, like as: 'v:20,200,4000,82000,2,1,1600@'.
2020
- Support to configure add line feed '\n' each line output.
2121
2222
*/
@@ -28,8 +28,8 @@
2828
#define EVERY_SEC_LINE_FEED // If defined, print line feed '\n' every second, to emulate legacy firmware.
2929
//#define SEND_STRIPPED_SPACES // If defined, send every 'space' before 'pulse' in broadcast(), which stripped in legacy firmware.
3030
//#define LED_BLINK_RX LED_BUILTIN // If defined, sets the digital output to blink on valid RF code reception.
31-
//#define DEFAULT_RX_SETTINGS // If defined, sets valid RX settings at boot, like sets 's:20,200,3000,82000@'
32-
//#define BOOT_SHOW_SETTINGS // If defined, show settings at boot, like as: 'v:20,200,3000,82000,2,1,1600@'
31+
//#define DEFAULT_RX_SETTINGS // If defined, sets valid RX settings at boot, like sets 's:20,200,4000,82000@'
32+
//#define BOOT_SHOW_SETTINGS // If defined, show settings at boot, like as: 'v:20,200,4000,82000,2,1,1600@'
3333
//#define ADD_LINE_FEED // If defined, add line feed '\n' each line output.
3434

3535
#define BUFFER_SIZE 256 // Warning: 256 max because buffer indexes "nrpulses" and "q" are "uint8_t" type
@@ -45,7 +45,7 @@
4545
#ifdef DEFAULT_RX_SETTINGS
4646
uint8_t minrawlen = 20; // Minimum number of pulses
4747
uint8_t maxrawlen = 200; // Maximum number of pulses
48-
uint16_t mingaplen = 300; // Minimum length of footer pulse and maximum length of previous pulses. Used and showing multiplied by 10
48+
uint16_t mingaplen = 400; // Minimum length of footer pulse and maximum length of previous pulses. Used and showing multiplied by 10
4949
#else
5050
uint8_t minrawlen = UINT8_MAX; // Maximum value for uint8_t from <cstdint> (stdint.h)
5151
uint8_t maxrawlen = 0;
@@ -90,7 +90,7 @@ void setup() {
9090
Serial.begin(BAUD);
9191

9292
#ifdef BOOT_SHOW_SETTINGS
93-
// Show settings at boot, like as: 'v:20,200,3000,82000,2,1,1600@'
93+
// Show settings at boot, like as: 'v:20,200,4000,82000,2,1,1600@'
9494
sprintf(data, "v:%u,%u,%lu,%lu,%d,%d,%d@", minrawlen, maxrawlen, uint32_t(mingaplen)*10, uint32_t(maxgaplen)*10, VERSION, MIN_PULSELENGTH/10, MAX_PULSELENGTH/10);
9595
#ifdef ADD_LINE_FEED
9696
Serial.println(data);

0 commit comments

Comments
 (0)