Skip to content

Commit

Permalink
Fix pulse and pulse_ms order in relay_t structure (#424)
Browse files Browse the repository at this point in the history
  • Loading branch information
xoseperez committed Jan 15, 2018
1 parent cc873a8 commit f38e4fc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/espurna/relay.ino
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ typedef struct {
unsigned char pin; // GPIO pin for the relay
unsigned char type; // RELAY_TYPE_NORMAL, RELAY_TYPE_INVERSE or RELAY_TYPE_LATCHED
unsigned char reset_pin; // GPIO to reset the relay if RELAY_TYPE_LATCHED
unsigned char pulse; // RELAY_PULSE_NONE, RELAY_PULSE_OFF or RELAY_PULSE_ON
unsigned long pulse_ms; // Pulse length in millis
unsigned long delay_on; // Delay to turn relay ON
unsigned long delay_off; // Delay to turn relay OFF
unsigned char pulse; // RELAY_PULSE_NONE, RELAY_PULSE_OFF or RELAY_PULSE_ON
unsigned long pulse_ms; // Pulse length in millis

// Status variables

Expand Down

0 comments on commit f38e4fc

Please sign in to comment.