Compare commits

..

1 Commits

Author SHA1 Message Date
tkl
4395bf0704 wip 2019-12-26 10:15:25 +01:00

View File

@ -129,18 +129,10 @@ void handle_state_shutdown()
void handle_state_guard()
{
if(guard_expire) {
if(ignition_on()) {
switch_power(on);
PORTB &= ~(1 << MOSI_PIN);
PORTB &= ~(1 << MISO_PIN);
PORTB &= ~(1 << SCK_PIN);
current_state = state_on;
} else {
current_state = state_off;
sleep_enable();
sleep_cpu();
sleep_disable();
}
current_state = state_off;
sleep_enable();
sleep_cpu();
sleep_disable();
}
}