timemanager: 0 is also < a positive integer.

This commit is contained in:
joevt 2023-08-09 15:33:51 -07:00 committed by dingusdev
parent 02a9e8d886
commit f5dcaebbf8

View File

@ -30,7 +30,7 @@ TimerManager* TimerManager::timer_manager;
uint32_t TimerManager::add_oneshot_timer(uint64_t timeout, timer_cb cb)
{
if (!timeout || timeout <= MIN_TIMEOUT_NS) {
if (timeout <= MIN_TIMEOUT_NS) {
LOG_F(WARNING, "One-shot timer too short, timeout=%llu ns", (long long unsigned)timeout);
}