Browse Source

SYNC_FIRST mode

rules-rpn
Andrey F. Kupreychik 5 years ago
parent
commit
bf705b282f
17 changed files with 17563 additions and 17548 deletions
  1. +1
    -0
      code/espurna/config/types.h
  2. BIN
      code/espurna/data/index.all.html.gz
  3. BIN
      code/espurna/data/index.light.html.gz
  4. BIN
      code/espurna/data/index.lightfox.html.gz
  5. BIN
      code/espurna/data/index.rfbridge.html.gz
  6. BIN
      code/espurna/data/index.rfm69.html.gz
  7. BIN
      code/espurna/data/index.sensor.html.gz
  8. BIN
      code/espurna/data/index.small.html.gz
  9. +8
    -0
      code/espurna/relay.ino
  10. +2610
    -2609
      code/espurna/static/index.all.html.gz.h
  11. +2487
    -2486
      code/espurna/static/index.light.html.gz.h
  12. +2079
    -2079
      code/espurna/static/index.lightfox.html.gz.h
  13. +2121
    -2120
      code/espurna/static/index.rfbridge.html.gz.h
  14. +3481
    -3480
      code/espurna/static/index.rfm69.html.gz.h
  15. +2696
    -2695
      code/espurna/static/index.sensor.html.gz.h
  16. +2079
    -2079
      code/espurna/static/index.small.html.gz.h
  17. +1
    -0
      code/html/index.html

+ 1
- 0
code/espurna/config/types.h View File

@ -85,6 +85,7 @@
#define RELAY_SYNC_NONE_OR_ONE 1
#define RELAY_SYNC_ONE 2
#define RELAY_SYNC_SAME 3
#define RELAY_SYNC_FIRST 4
#define RELAY_PULSE_NONE 0
#define RELAY_PULSE_OFF 1


BIN
code/espurna/data/index.all.html.gz View File


BIN
code/espurna/data/index.light.html.gz View File


BIN
code/espurna/data/index.lightfox.html.gz View File


BIN
code/espurna/data/index.rfbridge.html.gz View File


BIN
code/espurna/data/index.rfm69.html.gz View File


BIN
code/espurna/data/index.sensor.html.gz View File


BIN
code/espurna/data/index.small.html.gz View File


+ 8
- 0
code/espurna/relay.ino View File

@ -372,6 +372,14 @@ void relaySync(unsigned char id) {
if (i != id) relayStatus(i, status);
}
// If RELAY_SYNC_FIRST all relays should have the same state as first if first changes
} else if (relaySync == RELAY_SYNC_FIRST) {
if (id == 0) {
for (unsigned short i=1; i<_relays.size(); i++) {
relayStatus(i, status);
}
}
// If NONE_OR_ONE or ONE and setting ON we should set OFF all the others
} else if (status) {
if (relaySync != RELAY_SYNC_ANY) {


+ 2610
- 2609
code/espurna/static/index.all.html.gz.h
File diff suppressed because it is too large
View File


+ 2487
- 2486
code/espurna/static/index.light.html.gz.h
File diff suppressed because it is too large
View File


+ 2079
- 2079
code/espurna/static/index.lightfox.html.gz.h
File diff suppressed because it is too large
View File


+ 2121
- 2120
code/espurna/static/index.rfbridge.html.gz.h
File diff suppressed because it is too large
View File


+ 3481
- 3480
code/espurna/static/index.rfm69.html.gz.h
File diff suppressed because it is too large
View File


+ 2696
- 2695
code/espurna/static/index.sensor.html.gz.h
File diff suppressed because it is too large
View File


+ 2079
- 2079
code/espurna/static/index.small.html.gz.h
File diff suppressed because it is too large
View File


+ 1
- 0
code/html/index.html View File

@ -430,6 +430,7 @@
<option value="1">Zero or one switches active</option>
<option value="2">One and just one switch active</option>
<option value="3">All synchronised</option>
<option value="4">Switch #0 controls other switches</option>
</select>
<div class="pure-u-0 pure-u-lg-1-4"></div>
<div class="pure-u-1 pure-u-lg-3-4 hint">Define how the different switches should be synchronized.</div>


Loading…
Cancel
Save