diff --git a/src/iflytop/components/zcanreceiver/zcanhost.cpp b/src/iflytop/components/zcanreceiver/zcanhost.cpp index 218987a..d3553dc 100644 --- a/src/iflytop/components/zcanreceiver/zcanhost.cpp +++ b/src/iflytop/components/zcanreceiver/zcanhost.cpp @@ -334,6 +334,7 @@ int32_t ZCanHost::pumpctrl_c1004(int sensorid, int16_t acc, int16_t rpm, int8_t return err::zecode(err::kfail); } + m_pumpc1004_speed_cache[sensorid] = rpm; return 0; } @@ -414,6 +415,7 @@ int32_t ZCanHost::huacheng_pressure_sensor_read_c1005(int sensorid, huacheng_pre } int32_t ZCanHost::hpp272_read_c1000(int sensorid, hpp272_data_t& value) { + memset(&value, 0, sizeof(hpp272_data_t)); shared_ptr cmd = make_shared(); cmd->cmdid = 1000; cmd->subcmdid = 0;