diff --git a/scheduler/schedule.cpp b/scheduler/schedule.cpp index d1fea65..3cfd3ed 100644 --- a/scheduler/schedule.cpp +++ b/scheduler/schedule.cpp @@ -325,7 +325,11 @@ SensorScheduler::SensorScheduler() { UpdateCfg::ReadCfg(update_); } -long SensorScheduler::GetBaseTimestamp(int short_addr) { +void SensorScheduler::WaveError(int short_addr) { + return; +} + +long SensorScheduler::GetBaseTimestamp(int short_addr) { int id = 0; auto iter = short_addr_map_.find(short_addr); if (iter == short_addr_map_.end()) { @@ -334,7 +338,7 @@ long SensorScheduler::GetBaseTimestamp(int short_addr) { } else { id = iter->second; } - return start_timestamp_ + (id - 1) * eigen_value_send_duration_; + return start_timestamp_ + (id - 1) * eigen_value_send_duration_; } int SensorScheduler::GetAvailableId(int short_addr) { diff --git a/scheduler/schedule.hpp b/scheduler/schedule.hpp index a3a959d..5ad9170 100644 --- a/scheduler/schedule.hpp +++ b/scheduler/schedule.hpp @@ -41,6 +41,7 @@ public: int StartSchedule(int short_addr, int &next_duration); int GetNextDuration(int short_addr); + void WaveError(int short_addr); long GetBaseTimestamp(int id); long CalcNextTimestamp(int id, uint16_t short_addr);