Debug log with dlog_if_slow, MACRAW ping working, wfi disabled

This commit is contained in:
Ian Gulliver
2026-04-07 12:09:18 +09:00
parent d215ddc6f2
commit 31b2c16b07
5 changed files with 38 additions and 11 deletions

View File

@@ -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++)