truma_inetbox(stream): pin sender task to core 1; fix %s typo; keep keepalive/test queued; remove WiFi.h dependency
This commit is contained in:
parent
b5f02d0a47
commit
02cafc62dd
@ -63,7 +63,6 @@ void LinBusListener::setup() {
|
|||||||
this->setup_framework();
|
this->setup_framework();
|
||||||
|
|
||||||
#ifdef USE_ESP32
|
#ifdef USE_ESP32
|
||||||
this->stream_try_init_();
|
|
||||||
if (this->stream_queue_ == nullptr) {
|
if (this->stream_queue_ == nullptr) {
|
||||||
this->stream_queue_ = xQueueCreateStatic(
|
this->stream_queue_ = xQueueCreateStatic(
|
||||||
STREAM_QUEUE_LEN, STREAM_QUEUE_ITEM_MAX,
|
STREAM_QUEUE_LEN, STREAM_QUEUE_ITEM_MAX,
|
||||||
@ -76,7 +75,7 @@ void LinBusListener::setup() {
|
|||||||
this,
|
this,
|
||||||
1,
|
1,
|
||||||
&this->streamTaskHandle_,
|
&this->streamTaskHandle_,
|
||||||
0);
|
1); // pin to core 1 to avoid impacting WiFi on core 0
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
@ -96,6 +95,9 @@ void LinBusListener::setup() {
|
|||||||
void LinBusListener::update() {
|
void LinBusListener::update() {
|
||||||
this->check_for_lin_fault_();
|
this->check_for_lin_fault_();
|
||||||
#ifdef USE_ESP32
|
#ifdef USE_ESP32
|
||||||
|
if (this->stream_enabled_ && this->udp_sock_ < 0) {
|
||||||
|
this->stream_try_init_();
|
||||||
|
}
|
||||||
this->stream_maybe_keepalive_();
|
this->stream_maybe_keepalive_();
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
@ -423,7 +425,7 @@ void LinBusListener::process_log_queue(TickType_t xTicksToWait) {
|
|||||||
log_msg.message_source_know ? (log_msg.message_from_master ? " - MASTER" : " - SLAVE") : "",
|
log_msg.message_source_know ? (log_msg.message_from_master ? " - MASTER" : " - SLAVE") : "",
|
||||||
log_msg.current_data_valid ? "" : "INVALID");
|
log_msg.current_data_valid ? "" : "INVALID");
|
||||||
} else {
|
} else {
|
||||||
ESP_LOGV(TAG, "PID %02X %s %s %S", current_PID_, format_hex_pretty(log_msg.data, log_msg.len).c_str(),
|
ESP_LOGV(TAG, "PID %02X %s %s %s", current_PID_, format_hex_pretty(log_msg.data, log_msg.len).c_str(),
|
||||||
log_msg.message_source_know ? (log_msg.message_from_master ? " - MASTER" : " - SLAVE") : "",
|
log_msg.message_source_know ? (log_msg.message_from_master ? " - MASTER" : " - SLAVE") : "",
|
||||||
log_msg.current_data_valid ? "" : "INVALID");
|
log_msg.current_data_valid ? "" : "INVALID");
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user