Skip to content

Commit

Permalink
fix HR_TO_SEC and DAY_TO_SEC
Browse files Browse the repository at this point in the history
silly mistake
  • Loading branch information
tcsullivan committed Jul 22, 2024
1 parent fae14a7 commit 6768b30
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions noisemeter-device/timestamp.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@

#define SEC_TO_MS(s) (s * 1000)
#define MIN_TO_SEC(m) (m * 60)
#define HR_TO_SEC(h) MIN_TO_SEC(60)
#define DAY_TO_SEC(h) HR_TO_SEC(24)
#define HR_TO_SEC(h) (h * MIN_TO_SEC(60))
#define DAY_TO_SEC(d) (d * HR_TO_SEC(24))

/** Maximum number of milliseconds to wait for NTP sync to succeed. */
constexpr auto NTP_CONNECT_TIMEOUT_MS = SEC_TO_MS(20);
Expand Down

0 comments on commit 6768b30

Please sign in to comment.