Skip to content

Commit

Permalink
Monomer voltage Warnung wurde als Alarm gemeldet (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
shining-man committed Jun 30, 2024
1 parent dab04fb commit 8c5e217
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/devices/SeplosBms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -709,10 +709,10 @@ static void parseMessage_Alarms(uint8_t * t_message, uint8_t address)

// 36 Alarm event 2
case 72:
if ((u8_lByte & 0x1) == 0x1) u32_alarm |= BMS_ERR_STATUS_CELL_OVP; //?
if ((u8_lByte & 0x2) == 0x2) u32_alarm |= BMS_ERR_STATUS_CELL_OVP; //?
if ((u8_lByte & 0x4) == 0x4) u32_alarm |= BMS_ERR_STATUS_CELL_UVP; //?
if ((u8_lByte & 0x8) == 0x8) u32_alarm |= BMS_ERR_STATUS_CELL_UVP; //?
if ((u8_lByte & 0x1) == 0x1) u32_warnings |= BMS_ERR_STATUS_CELL_OVP; // Monomer high voltage alarm (Warning)
if ((u8_lByte & 0x2) == 0x2) u32_alarm |= BMS_ERR_STATUS_CELL_OVP; // Monomer overvoltage protection (Alarm)
if ((u8_lByte & 0x4) == 0x4) u32_warnings |= BMS_ERR_STATUS_CELL_UVP; // Monomer low voltage alarm (Warning)
if ((u8_lByte & 0x8) == 0x8) u32_alarm |= BMS_ERR_STATUS_CELL_UVP; // Monomer under voltage protection (Alarm)
if ((u8_lByte & 0x10) == 0x10) u32_warnings |= BMS_ERR_STATUS_BATTERY_OVP; // Warning
if ((u8_lByte & 0x20) == 0x20) u32_alarm |= BMS_ERR_STATUS_BATTERY_OVP; // Alarm
if ((u8_lByte & 0x40) == 0x40) u32_warnings |= BMS_ERR_STATUS_BATTERY_UVP; // Warning
Expand Down

0 comments on commit 8c5e217

Please sign in to comment.