Skip to content

Commit 6af0b8f

Browse files
authored
Merge pull request #530 from helium/issue529
typo in defines
2 parents 1898572 + 5ca06ab commit 6af0b8f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/hal/hal.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -250,10 +250,10 @@ static s4_t delta_time(u4_t time) {
250250

251251
// deal with boards that are stressed by no-interrupt delays #529, etc.
252252
#if defined(ARDUINO_DISCO_L072CZ_LRWAN1)
253-
# define HAL_WAITUNTIL_DOWNCONNT_MS 16 // on this board, 16 ms works better
253+
# define HAL_WAITUNTIL_DOWNCOUNT_MS 16 // on this board, 16 ms works better
254254
# define HAL_WAITUNTIL_DOWNCOUNT_THRESH ms2osticks(16) // as does this threashold.
255255
#else
256-
# define HAL_WAITUNTIL_DWONCOUNT_MS 8 // on most boards, delay for 8 ms
256+
# define HAL_WAITUNTIL_DOWNCOUNT_MS 8 // on most boards, delay for 8 ms
257257
# define HAL_WAITUNTIL_DOWNCOUNT_THRESH ms2osticks(9) // but try to leave a little slack for final timing.
258258
#endif
259259

@@ -272,7 +272,7 @@ u4_t hal_waitUntil (u4_t time) {
272272
// will exit loop with delta typically positive.
273273
// Depends on BSP keeping time accurately even if interrupts
274274
// are disabled.
275-
delay(HAL_WAITUNTIL_DWONCOUNT_MS);
275+
delay(HAL_WAITUNTIL_DOWNCOUNT_MS);
276276
// re-synchronize.
277277
delta = delta_time(time);
278278
}

0 commit comments

Comments
 (0)