Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 76724782b8 | |||
| 93f328545f |
@ -15,7 +15,7 @@ namespace truma_inetbox {
|
||||
|
||||
static const char *const TAG = "truma_inetbox.LinBusListener";
|
||||
|
||||
#define QUEUE_WAIT_BLOCKING (portTickType) portMAX_DELAY
|
||||
#define QUEUE_WAIT_BLOCKING (TickType_t) portMAX_DELAY
|
||||
|
||||
void LinBusListener::setup_framework() {
|
||||
// uartSetFastReading
|
||||
|
||||
@ -149,7 +149,7 @@ bool IDFUARTComponent::peek_byte(uint8_t *data) {
|
||||
if (this->has_peek_) {
|
||||
*data = this->peek_byte_;
|
||||
} else {
|
||||
int len = uart_read_bytes(this->uart_num_, data, 1, 20 / portTICK_RATE_MS);
|
||||
int len = uart_read_bytes(this->uart_num_, data, 1, 20 / portTICK_PERIOD_MS);
|
||||
if (len == 0) {
|
||||
*data = 0;
|
||||
} else {
|
||||
@ -173,7 +173,7 @@ bool IDFUARTComponent::read_array(uint8_t *data, size_t len) {
|
||||
this->has_peek_ = false;
|
||||
}
|
||||
if (length_to_read > 0)
|
||||
uart_read_bytes(this->uart_num_, data, length_to_read, 20 / portTICK_RATE_MS);
|
||||
uart_read_bytes(this->uart_num_, data, length_to_read, 20 / portTICK_PERIOD_MS);
|
||||
xSemaphoreGive(this->lock_);
|
||||
#ifdef USE_UART_DEBUGGER
|
||||
for (size_t i = 0; i < len; i++) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user