fix ts bug 3.

This commit is contained in:
pandx 2025-04-30 10:32:05 +08:00
parent 8e7aadee9a
commit 517ea957f0

View File

@ -302,7 +302,7 @@ int SensorScheduler::GetNextDuration(int short_addr, int &next_task_id) {
} else { } else {
id = iter->second; id = iter->second;
} }
long current_ts_ = GetLocalTs(); current_ts_ = GetLocalTs();
// nth_wave_start_slice_ = (current_ts_ - start_timestamp_) / wave_form_send_interval_; // nth_wave_start_slice_ = (current_ts_ - start_timestamp_) / wave_form_send_interval_;
// current_wave_start_ts_ = nth_wave_start_slice_ * wave_form_send_interval_ + start_timestamp_; // current_wave_start_ts_ = nth_wave_start_slice_ * wave_form_send_interval_ + start_timestamp_;
// seconds_in_current_wave_slice_ = current_ts_ - current_wave_start_ts_; // seconds_in_current_wave_slice_ = current_ts_ - current_wave_start_ts_;