Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions vehicle/OVMS.V3/components/vehicle_smarteq/src/eq_can.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -260,10 +260,11 @@ void OvmsVehicleSmartEQ::IncomingFrameCan1(CAN_frame_t* p_frame) {
REQ_DLC(1);
StdMetrics.ms_v_env_on->SetValue((CAN_BYTE(0) & 0x40) > 0); // Drive Ready
break;
case 0x673:
case 0x673:
{
// TPMS pressure values only used, when CAN write is disabled, otherwise utilize PollReply_TPMS_InputCapt
if ((!m_enable_write && !m_enable_write_caron) || !m_obdii_745_tpms)
{
{
REQ_DLC(6);
// Read TPMS pressure values:
for (int i = 0; i < 4; i++)
Expand All @@ -274,12 +275,16 @@ void OvmsVehicleSmartEQ::IncomingFrameCan1(CAN_frame_t* p_frame) {
if (m_tpms_temp_enable)
{
// Dummy value to indicate valid temp reading, actual temp value is not available in this frame, but can be read via PollReply_TPMS_InputCapt when CAN write is enabled
m_tpms_temperature[i] = 1.1f;
m_tpms_temperature[i] = StdMetrics.ms_v_env_temp->AsFloat(1.1f);
}
// Prevent warnings when readings are valid if the data is not read via OBDII.
m_tpms_lowbatt[i] = 0;
m_tpms_missing_tx[i] = 0;
}
}
}
}
break;
}
default:
//ESP_LOGI(TAG, "PID:%x DATA: %02x %02x %02x %02x %02x %02x %02x %02x", p_frame->MsgID, data[0], data[1], data[2], data[3], data[4], data[5], data[6], data[7]);
break;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ void OvmsVehicleSmartEQ::setTPMSValue() {
}

// Handle alert conditions only if sensor is working and alerts are enabled
if (!pressure_valid || !alerts_enabled || (!m_enable_write_caron && !m_enable_write))
if (!pressure_valid || !alerts_enabled)
{
// Sensor not working or alerts disabled - clear all alerts
_lowbatt = false;
Expand Down