Skip to content

Commit

Permalink
Log port switch status (#431)
Browse files Browse the repository at this point in the history
See #283
  • Loading branch information
syssi authored Jan 21, 2024
1 parent cdaacd7 commit c42e078
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/jk_bms_ble/jk_bms_ble.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -933,6 +933,7 @@ void JkBmsBle::decode_jk02_settings_(const std::vector<uint8_t> &data) {
// 282 1 0x00 New controls bitmask
this->publish_state_(this->disable_temperature_sensors_switch_, check_bit_(data[282], 2));
this->publish_state_(this->display_always_on_switch_, check_bit_(data[282], 16));
ESP_LOGI(TAG, " Port switch: %s", check_bit_(data[282], 8) ? "RS485" : "CAN");

// 283 3 0x00 0x00 0x00
// 286 4 0x00 0x00 0x00 0x00
Expand Down

0 comments on commit c42e078

Please sign in to comment.