Debug trip counter from cluster

This commit is contained in:
Carsten Schmiemann 2022-04-19 22:44:31 +02:00
parent 1fa767a5f1
commit 262ba88322
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}