Use "reset reason" defines (#18462)

This commit is contained in:
Giuliano Zaro
2020-06-29 08:02:36 +02:00
committed by GitHub
parent 69b5b91c91
commit bfcf7ac2fd
2 changed files with 6 additions and 7 deletions

View File

@ -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); }