@@ -227,7 +227,7 @@ void TopTronic::register_sensor_callbacks() {
227
227
auto data = sensor->get_request_data ();
228
228
canbus->send_data (can_id, true , data);
229
229
230
- ESP_LOGI (TAG, " [GET] Data: 0x%s" , hex_str (&data[0 ], data.size ()).c_str ());
230
+ ESP_LOGD (TAG, " [GET] Data: 0x%s" , hex_str (&data[0 ], data.size ()).c_str ());
231
231
});
232
232
}
233
233
}
@@ -319,7 +319,7 @@ void TopTronic::parse_frame(std::vector<uint8_t> data, uint32_t can_id, bool rem
319
319
} else {
320
320
// We expect further messages
321
321
u_int8_t msg_header = data[1 ];
322
- ESP_LOGI (TAG, " Start of message with id: %d with length %d" , msg_header, msg_len);
322
+ ESP_LOGD (TAG, " - Start of message with id: %d with length %d" , msg_header, msg_len);
323
323
pending_messages_[msg_header] = std::make_pair (std::vector<uint8_t >(data.begin () + 2 , data.end ()), msg_len -1 );
324
324
}
325
325
} else {
@@ -328,7 +328,7 @@ void TopTronic::parse_frame(std::vector<uint8_t> data, uint32_t can_id, bool rem
328
328
if (it != pending_messages_.end ()) {
329
329
auto pending_msg = it->second ;
330
330
auto msg_len = pending_msg.second - 1 ;
331
- ESP_LOGI (TAG, " Part of message with id: %d with remaining length %d" , msg_header, msg_len);
331
+ ESP_LOGD (TAG, " - Part of message with id: %d with remaining length %d" , msg_header, msg_len);
332
332
pending_msg.first .insert (pending_msg.first .end (), data.begin () + 1 , data.end ());
333
333
if (msg_len == 0 ) {
334
334
pending_messages_.erase (msg_header);
@@ -346,7 +346,7 @@ void TopTronic::interpret_message(std::vector<uint8_t> data, uint32_t can_id, bo
346
346
// check if operation is of type RESPONSE
347
347
348
348
if (data[0 ] == GET_REQ) {
349
- ESP_LOGI (TAG, " [GET] Can-ID: 0x%08X, Data: 0x%s" , can_id, hex_str (&data[0 ], data.size ()).c_str ());
349
+ ESP_LOGD (TAG, " [GET] Can-ID: 0x%08X, Data: 0x%s" , can_id, hex_str (&data[0 ], data.size ()).c_str ());
350
350
return ;
351
351
}
352
352
@@ -356,7 +356,7 @@ void TopTronic::interpret_message(std::vector<uint8_t> data, uint32_t can_id, bo
356
356
}
357
357
358
358
if (data[0 ] != RESPONSE) {
359
- ESP_LOGI (TAG, " [UNK] Can-ID: 0x%08X, Data: 0x%s" , can_id, hex_str (&data[0 ], data.size ()).c_str ());
359
+ ESP_LOGD (TAG, " [UNK] Can-ID: 0x%08X, Data: 0x%s" , can_id, hex_str (&data[0 ], data.size ()).c_str ());
360
360
return ;
361
361
}
362
362
0 commit comments