mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-24 14:26:11 +02:00
0.6.6
* increased distance for `import` button in mobile view #879 * changed `led_high_active` to `bool` #879
This commit is contained in:
parent
1e1696ca15
commit
48ce948ede
6 changed files with 14 additions and 11 deletions
|
@ -389,8 +389,7 @@ void app::mqttSubRxCb(JsonObject obj) {
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
void app::setupLed(void) {
|
||||
|
||||
uint8_t led_off = (mConfig->led.led_high_active != 0) ? LOW : HIGH;
|
||||
uint8_t led_off = (mConfig->led.led_high_active) ? LOW : HIGH;
|
||||
|
||||
if (mConfig->led.led0 != 0xff) {
|
||||
pinMode(mConfig->led.led0, OUTPUT);
|
||||
|
@ -404,9 +403,8 @@ void app::setupLed(void) {
|
|||
|
||||
//-----------------------------------------------------------------------------
|
||||
void app::updateLed(void) {
|
||||
|
||||
uint8_t led_off = (mConfig->led.led_high_active != 0) ? LOW : HIGH;
|
||||
uint8_t led_on = (mConfig->led.led_high_active != 0) ? HIGH : LOW;
|
||||
uint8_t led_off = (mConfig->led.led_high_active) ? LOW : HIGH;
|
||||
uint8_t led_on = (mConfig->led.led_high_active) ? HIGH : LOW;
|
||||
|
||||
if (mConfig->led.led0 != 0xff) {
|
||||
Inverter<> *iv = mSys.getInverterByPos(0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue