Skip to content

Commit c42e078

Browse files
authored
Log port switch status (syssi#431)
See syssi#283
1 parent cdaacd7 commit c42e078

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

components/jk_bms_ble/jk_bms_ble.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,7 @@ void JkBmsBle::decode_jk02_settings_(const std::vector<uint8_t> &data) {
933933
// 282 1 0x00 New controls bitmask
934934
this->publish_state_(this->disable_temperature_sensors_switch_, check_bit_(data[282], 2));
935935
this->publish_state_(this->display_always_on_switch_, check_bit_(data[282], 16));
936+
ESP_LOGI(TAG, " Port switch: %s", check_bit_(data[282], 8) ? "RS485" : "CAN");
936937

937938
// 283 3 0x00 0x00 0x00
938939
// 286 4 0x00 0x00 0x00 0x00

0 commit comments

Comments
 (0)