Skip to content

Commit f72479d

Browse files
committed
Add weak hook to trigger companion chip reinitialization
1 parent d81ee4f commit f72479d

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

cores/arduino/Reset.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ static void banzai() {
6969
static int ticks = -1;
7070

7171
void initiateReset(int _ticks) {
72+
resetExternalChip();
7273
ticks = _ticks;
7374
}
7475

cores/arduino/Reset.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ void initiateReset(int ms);
2626
void tickReset();
2727
void cancelReset();
2828

29+
__attribute__ ((weak)) void resetExternalChip() {};
30+
2931
#ifdef __cplusplus
3032
}
3133
#endif

0 commit comments

Comments
 (0)