add exception process.
This commit is contained in:
parent
38b26eb7f0
commit
22b27a66a5
@ -207,6 +207,10 @@ int SensorScheduler::GetNextDuration(int short_addr) {
|
||||
long current_ts = GetLocalTs();
|
||||
long next_ts = CalcNextTimestamp(id, short_addr);
|
||||
int duration = next_ts - current_ts;
|
||||
if (duration <= 0 || duration > eigen_value_send_interval_) {
|
||||
zlog_warn(zct, "[Nxt] exception duration: %d", duration);
|
||||
duration = eigen_value_send_interval_;
|
||||
}
|
||||
zlog_warn(zct, "[Nxt] [%d:%x] next duration is %d", id, short_addr, duration);
|
||||
return duration;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user