diff --git a/lib/card10/display.c b/lib/card10/display.c
index f9c2f90d7e7e0fa0a0d25d86cf0a76844217bc98..4cc3b4113684ebafdbe66d9414f70c27467b7fe7 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 4a2c99670ef8ae2157db3ac028895eda69ca2a3a..f74e3100823410f8cd8485196481e3ce3624432c 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])