From bc05058e133a3ed283f000c263304a40969995b4 Mon Sep 17 00:00:00 2001 From: Florian Kargl <f.kargl@posteo.de> Date: Fri, 6 Sep 2019 18:32:44 +0200 Subject: [PATCH] fix(portexpander): portexpander_out_put() now takes a mask as value --- lib/card10/display.c | 2 +- lib/card10/leds.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/card10/display.c b/lib/card10/display.c index f9c2f90d..4cc3b411 100644 --- a/lib/card10/display.c +++ b/lib/card10/display.c @@ -22,7 +22,7 @@ void display_set_reset_pin(uint8_t state) if (!portexpander_detected()) { MAX77650_setDO(state ? true : false); } else { - portexpander_out_put(PIN_4, state); + portexpander_out_put(PIN_4, state ? 0xFF : 0); } } diff --git a/lib/card10/leds.c b/lib/card10/leds.c index 4a2c9967..f74e3100 100644 --- a/lib/card10/leds.c +++ b/lib/card10/leds.c @@ -340,7 +340,7 @@ void leds_update(void) void leds_flashlight(bool power) { - portexpander_out_put(PIN_7, (power) ? 0 : 1); + portexpander_out_put(PIN_7, (power) ? 0 : 0xFF); } void leds_set_gamma_table(uint8_t rgb_channel, uint8_t table[256]) -- GitLab