fix return 0 bug.
This commit is contained in:
parent
5d3e9cc58f
commit
890f27dbd1
@ -144,7 +144,7 @@ int SensorScheduler::GetNextDuration(int short_addr) {
|
|||||||
long next_ts = CalcNextTimestamp(id);
|
long next_ts = CalcNextTimestamp(id);
|
||||||
int duration = next_ts - current_ts;
|
int duration = next_ts - current_ts;
|
||||||
zlog_debug(zct, "[%d] next duration is %d", id, duration);
|
zlog_debug(zct, "[%d] next duration is %d", id, duration);
|
||||||
return 0;
|
return duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
long SensorScheduler::GetBaseTimestamp(int short_addr) {
|
long SensorScheduler::GetBaseTimestamp(int short_addr) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user