188,15 → 188,10 |
// Determine what to do at this point. We either choose to idle (on POR) |
// or go into a mode specified prior to the software reset event |
uint8_t last_reset = Get_Reset_Condition(); |
switch (last_reset) { |
// If our last reset was a POR/BOR/PIN/WDT/CFG, go into idle mode |
case RESET_POR: |
case RESET_BOR: |
case RESET_PIN: |
case RESET_WDT: |
case RESET_CFG: |
op_state.cube_mode = BOARD_MODE_IDLE; |
break; |
if (last_reset == RESET_POR || last_reset == RESET_BOR || |
last_reset == RESET_PIN || last_reset == RESET_WDT || |
last_reset == RESET_CFG) { |
op_state.cube_mode = BOARD_MODE_IDLE; |
} |
|
PWM2_Start(); |