Skip to content

Commit 1e75d74

Browse files
thinkyheadLCh-77
authored andcommitted
♻️ Watchdog followup
Followup to 52eefa9
1 parent 2ac9894 commit 1e75d74

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

Marlin/src/HAL/STM32/msc_sd.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -57,15 +57,15 @@ class Sd2CardUSBMscHandler : public USBMscHandler {
5757
auto sd2card = diskIODriver();
5858
// single block
5959
if (blkLen == 1) {
60-
watchdog_refresh();
60+
hal.watchdog_refresh();
6161
sd2card->writeBlock(blkAddr, pBuf);
6262
return true;
6363
}
6464

6565
// multi block optimization
6666
sd2card->writeStart(blkAddr, blkLen);
6767
while (blkLen--) {
68-
watchdog_refresh();
68+
hal.watchdog_refresh();
6969
sd2card->writeData(pBuf);
7070
pBuf += BLOCK_SIZE;
7171
}
@@ -77,15 +77,15 @@ class Sd2CardUSBMscHandler : public USBMscHandler {
7777
auto sd2card = diskIODriver();
7878
// single block
7979
if (blkLen == 1) {
80-
watchdog_refresh();
80+
hal.watchdog_refresh();
8181
sd2card->readBlock(blkAddr, pBuf);
8282
return true;
8383
}
8484

8585
// multi block optimization
8686
sd2card->readStart(blkAddr);
8787
while (blkLen--) {
88-
watchdog_refresh();
88+
hal.watchdog_refresh();
8989
sd2card->readData(pBuf);
9090
pBuf += BLOCK_SIZE;
9191
}

Marlin/src/HAL/shared/cpu_exception/exception_arm.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ bool resume_from_fault() {
221221
// So we'll just need to refresh the watchdog for a while and then stop for the system to reboot
222222
uint32_t last = start;
223223
while (PENDING(last, end)) {
224-
watchdog_refresh();
224+
hal.watchdog_refresh();
225225
while (millis() == last) { /* nada */ }
226226
last = millis();
227227
MinSerial::TX('.');

0 commit comments

Comments
 (0)