diff --git a/lib/card10/display.c b/lib/card10/display.c
index f9c2f90d7e7e0fa0a0d25d86cf0a76844217bc98..fc2c6a32ea8cf7a5a799f0a38f25a263f41004cf 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 ? 255 : 0);
 	}
 }
 
diff --git a/lib/card10/leds.c b/lib/card10/leds.c
index 4a2c99670ef8ae2157db3ac028895eda69ca2a3a..a61846ea0434eff488e3b40c2004fb0ee5446810 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 : 255);
 }
 
 void leds_set_gamma_table(uint8_t rgb_channel, uint8_t table[256])