v6xrt: correct LED state read logic (#26316)

Move negation to return value instead of GPIO map argument for proper active-low handling.
This commit is contained in:
Atsunori Saito
2026-01-23 08:11:37 +09:00
committed by GitHub
parent 11f4d5c4e7
commit 75d7395daa

View File

@@ -92,7 +92,7 @@ static bool phy_get_led(int led)
{
if (g_ledmap[led] != 0) {
return imxrt_gpio_read(!g_ledmap[led]);
return !imxrt_gpio_read(g_ledmap[led]);
}
return false;