Add power LED

This commit is contained in:
Jeremy Soller 2020-01-10 14:33:16 -07:00
parent 9f57e03518
commit bd7b9a44d6
No known key found for this signature in database
GPG Key ID: E988B49EE78A7FB1

View File

@ -320,4 +320,17 @@ void power_event(void) {
ack_last = ack_new;
#endif // DEEP_SX
switch (state) {
case POWER_STATE_DEFAULT:
case POWER_STATE_DS5:
case POWER_STATE_S5:
case POWER_STATE_DS3:
case POWER_STATE_S3:
gpio_set(&LED_PWR, false);
break;
case POWER_STATE_S0:
gpio_set(&LED_PWR, true);
break;
}
}