Skip to content
Snippets Groups Projects
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
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) ...@@ -22,7 +22,7 @@ void display_set_reset_pin(uint8_t state)
if (!portexpander_detected()) { if (!portexpander_detected()) {
MAX77650_setDO(state ? true : false); MAX77650_setDO(state ? true : false);
} else { } else {
portexpander_out_put(PIN_4, state); portexpander_out_put(PIN_4, state ? 0xFF : 0);
} }
} }
......
...@@ -340,7 +340,7 @@ void leds_update(void) ...@@ -340,7 +340,7 @@ void leds_update(void)
void leds_flashlight(bool power) 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]) 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.
Please register or to comment