mirror of
https://github.com/espressif/esp-idf.git
synced 2026-05-19 23:45:28 +02:00
Build system: Raise warning level
Default esp-idf builds now show -Wextra warnings (except for a few: signed/unsigned comparison, unused parameters, old-style C declarations.) CI building of examples runs with that level raised to -Werror, to catch those changes going into the main repo.
This commit is contained in:
@@ -495,8 +495,8 @@ BaseType_t xRingbufferSend(RingbufHandle_t ringbuf, void *data, size_t dataSize,
|
||||
//we will need to wait some more.
|
||||
ticks_to_wait = ticks_end - xTaskGetTickCount();
|
||||
}
|
||||
} while (ringbufferFreeMem(rb) < needed_size && ticks_to_wait>=0);
|
||||
|
||||
} while (ringbufferFreeMem(rb) < needed_size && ticks_end >= xTaskGetTickCount());
|
||||
|
||||
//Lock the mux in order to make sure no one else is messing with the ringbuffer and do the copy.
|
||||
portENTER_CRITICAL(&rb->mux);
|
||||
//Another thread may have been able to sneak its write first. Check again now we locked the ringbuff, and retry
|
||||
|
||||
Reference in New Issue
Block a user