Commit ac42100e authored by Rahix's avatar Rahix
Browse files

Merge 'Use correct values for portexpander_out_put()'

Fixes the side led flashlight and display reset.

See merge request !300
parents 9325a212 bc05058e
Pipeline #3849 passed with stages
in 2 minutes and 16 seconds
......@@ -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])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment