Debug trip counter from cluster
This commit is contained in:
parent
1fa767a5f1
commit
262ba88322
|
@ -28,8 +28,10 @@
|
|||
void OvmsVehicleRenaultZoePh2::IncomingCLUSTER(uint16_t type, uint16_t pid, const char* data, uint16_t len) {
|
||||
switch (pid) {
|
||||
case 0x2101: { // Cluster - trip counter
|
||||
mt_pos_car_trip->SetValue(CAN_UINT32(0) / 100, Kilometers);
|
||||
ESP_LOGD(TAG, "2101 CLUSTER mt_pos_car_trip: %f", float(CAN_UINT32(0) / 100));
|
||||
mt_pos_car_trip->SetValue(CAN_UINT32(0) * 0.1, Kilometers);
|
||||
ESP_LOGD(TAG, "2101 CLUSTER mt_pos_car_trip: %f", float(CAN_UINT32(0)));
|
||||
ESP_LOGD(TAG, "2101 CLUSTER mt_pos_car_trip: %f", float(CAN_UINT32(0) * 0.1));
|
||||
ESP_LOGD(TAG, "2101 CLUSTER mt_pos_car_trip: %f", float(CAN_UINT32(0) * 0.01));
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue