Browse Source

Allow to specify number of switches in RFBridge as a build parameter

fastled
Xose Pérez 6 years ago
parent
commit
b42e2c42e2
2 changed files with 5 additions and 3 deletions
  1. +4
    -2
      code/espurna/config/hardware.h
  2. +1
    -1
      code/platformio.ini

+ 4
- 2
code/espurna/config/hardware.h View File

@ -415,9 +415,11 @@
#define DEVICE "SONOFF_RFBRIDGE"
#define SERIAL_BAUDRATE 19200
#define RELAY_PROVIDER RELAY_PROVIDER_RFBRIDGE
#define DUMMY_RELAY_COUNT 6
#define TRACK_RELAY_STATUS 0
#define TERMINAL_SUPPORT 0
#define TERMINAL_SUPPORT 0
#ifndef DUMMY_RELAY_COUNT
#define DUMMY_RELAY_COUNT 6
#endif
// Buttons
#define BUTTON1_PIN 0


+ 1
- 1
code/platformio.ini View File

@ -4,7 +4,7 @@ src_dir = espurna
data_dir = espurna/data
[common]
build_flags = -g -DMQTT_MAX_PACKET_SIZE=400
build_flags = -g -DMQTT_MAX_PACKET_SIZE=400 ${env.FLAGS}
build_flags_512k = ${common.build_flags} -Wl,-Tesp8266.flash.512k0.ld
build_flags_1m = ${common.build_flags} -Wl,-Tesp8266.flash.1m0.ld
lib_deps =


Loading…
Cancel
Save