Fix warning in gcode_D
This commit is contained in:
parent
2a6d48bf9e
commit
5917b5cf5c
@ -23,7 +23,7 @@
|
|||||||
|
|
||||||
#define CPU_32_BIT
|
#define CPU_32_BIT
|
||||||
|
|
||||||
#define F_CPU 100000000
|
#define F_CPU 100000000UL
|
||||||
#define SystemCoreClock F_CPU
|
#define SystemCoreClock F_CPU
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
@ -155,7 +155,7 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Delay in nanoseconds
|
// Delay in nanoseconds
|
||||||
#define DELAY_NS(x) DELAY_CYCLES( (x) * (F_CPU / 1000000UL) / 1000UL )
|
#define DELAY_NS(x) DELAY_CYCLES((x) * ((F_CPU) / 1000000UL) / 1000UL)
|
||||||
|
|
||||||
// Delay in microseconds
|
// Delay in microseconds
|
||||||
#define DELAY_US(x) DELAY_CYCLES( (x) * (F_CPU / 1000000UL) )
|
#define DELAY_US(x) DELAY_CYCLES((x) * ((F_CPU) / 1000000UL))
|
||||||
|
@ -181,7 +181,7 @@
|
|||||||
// Use a low-level delay that does not rely on interrupts to function
|
// Use a low-level delay that does not rely on interrupts to function
|
||||||
// Do not spin forever, to avoid thermal risks if heaters are enabled and
|
// Do not spin forever, to avoid thermal risks if heaters are enabled and
|
||||||
// watchdog does not work.
|
// watchdog does not work.
|
||||||
DELAY_US(10000000);
|
for (int i = 10000; i--;) DELAY_US(1000UL);
|
||||||
ENABLE_ISRS();
|
ENABLE_ISRS();
|
||||||
SERIAL_ECHOLNPGM("FAILURE: Watchdog did not trigger board reset.");
|
SERIAL_ECHOLNPGM("FAILURE: Watchdog did not trigger board reset.");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user