Skip to content
Snippets Groups Projects
Commit bc05058e authored by Woazboat's avatar Woazboat
Browse files

fix(portexpander): portexpander_out_put() now takes a mask as value

parent 9325a212
No related branches found
No related tags found
No related merge requests found
......@@ -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);
}
}
......
......@@ -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])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment