Debug log with dlog_if_slow, MACRAW ping working, wfi disabled
This commit is contained in:
@@ -24,6 +24,11 @@ struct ring_buffer {
|
||||
data[(tail++) % N] = v;
|
||||
}
|
||||
|
||||
void push_overwrite(const T& v) {
|
||||
if (free() == 0) head++;
|
||||
data[(tail++) % N] = v;
|
||||
}
|
||||
|
||||
uint16_t peek(std::span<T> dst) const {
|
||||
uint16_t len = dst.size() < used() ? dst.size() : used();
|
||||
for (uint16_t i = 0; i < len; i++)
|
||||
|
||||
Reference in New Issue
Block a user