Skip to content

Commit abdd242

Browse files
committed
corrected an small bug in "VERBOSE" log level
1 parent 0726f84 commit abdd242

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/jk_rs485_bms/jk_rs485_bms.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1629,7 +1629,7 @@ void JkRS485Bms::publish_state_(JkRS485BmsNumber *number, float value) {
16291629
const size_t free_heap = heap_caps_get_largest_free_block(MALLOC_CAP_8BIT);
16301630

16311631
if (reinterpret_cast<uintptr_t>(number) > 0x3f000000) {
1632-
ESP_LOGV(TAG, " ]* Publishing state %d for object with address %p [%f] %s", state, (void*)number, ((float)free_heap/1024), number->get_name().c_str());
1632+
ESP_LOGV(TAG, " ]* Publishing state %f for object with address %p [%f] %s", value, (void*)number, ((float)free_heap/1024), number->get_name().c_str());
16331633
number->publish_state(value);
16341634
ESP_LOGV(TAG, " --------------------------------------- PUBLISHED 0x%02X publish_state(state) of %s", reinterpret_cast<uintptr_t>(number), number->get_name().c_str());
16351635
} else {

0 commit comments

Comments
 (0)