add wave missed schedule.
This commit is contained in:
parent
890fcb6736
commit
316068a647
@ -203,13 +203,14 @@ long SensorScheduler::CalcNextTimestamp(int id, uint16_t short_addr) {
|
||||
}
|
||||
}
|
||||
|
||||
if (send_wave_ts == 0) {
|
||||
if (!MissedWave(short_addr) && send_wave_ts == 0 && success_set_.count(short_addr) == 0) {
|
||||
// add for patch wave
|
||||
int nth_wave_slice = nth_eigen_value_slice_ * wave_slice_num_per_eigen_interval_ + nth_wave_slice_ + 1;
|
||||
auto wave_slice_iter = sensor_id_nth_slice_.find(id);
|
||||
if (wave_slice_iter != sensor_id_nth_slice_.end()) {
|
||||
if (nth_wave_slice > wave_slice_iter->second) {
|
||||
if (success_set_.count(short_addr) == 0 && !RetransferWave(short_addr)) {
|
||||
zlog_warn(zct, "[Nxt] [%d] add it to patch set", short_addr);
|
||||
patch_set_.insert(short_addr);
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user