Merge branch 'refactor' of http://192.168.0.10:3000/pandx/WLG into refactor

This commit is contained in:
zhangsheng 2024-11-05 11:11:38 +08:00
commit cec944a05a

View File

@ -59,7 +59,7 @@ int SensorScheduler::WriteScheduleCfg(long &ts, std::string &world_time) {
for (int i = 0; i < available_slice_; ++i) { for (int i = 0; i < available_slice_; ++i) {
ids.append(slice_allocation[i]); ids.append(slice_allocation[i]);
} }
delete slice_allocation; delete []slice_allocation;
root["id"] = ids; root["id"] = ids;
Json::StyledStreamWriter streamWriter; Json::StyledStreamWriter streamWriter;
std::ofstream out_file(SCHEDULE_CONFIG); std::ofstream out_file(SCHEDULE_CONFIG);