Use "reset reason" defines (#18462)
This commit is contained in:
parent
69b5b91c91
commit
bfcf7ac2fd
2 changed files with 6 additions and 7 deletions
|
@ -277,9 +277,8 @@ void HAL_clear_reset_source() { }
|
|||
|
||||
/**
|
||||
* TODO: Check this and change or remove.
|
||||
* currently returns 1 that's equal to poweron reset.
|
||||
*/
|
||||
uint8_t HAL_get_reset_source() { return 1; }
|
||||
uint8_t HAL_get_reset_source() { return RST_POWER_ON; }
|
||||
|
||||
void _delay_ms(const int delay_ms) { delay(delay_ms); }
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue