Skip to content
Snippets Groups Projects
Commit 8e5bf1a9 authored by Sergi Hernandez's avatar Sergi Hernandez
Browse files

Set a 1000 ms RX timeout in the battery driver.

parent b6d77034
No related branches found
No related tags found
1 merge request!1Sergi
......@@ -12,6 +12,8 @@ CModelCarBatteries::CModelCarBatteries(std::string name) : CModelCarDriverBase(n
battery_values.insert(std::make_pair(ID_ARD_SENS_VOLT_SENSORS_CELL4, 0.0));
battery_values.insert(std::make_pair(ID_ARD_SENS_VOLT_SENSORS_CELL5, 0.0));
battery_values.insert(std::make_pair(ID_ARD_SENS_VOLT_SENSORS_CELL6, 0.0));
this->set_rx_timeout(1000);
}
void CModelCarBatteries::process_data_frame(uint8_t id, TDataUnion data_union)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment