various crust

This commit is contained in:
Matthew Kennedy 2023-03-03 02:20:51 -08:00
parent 82346c1650
commit 5fae1b4f55
3 changed files with 1 additions and 5 deletions

View File

@ -11,7 +11,6 @@
#pragma once
// todo: remove this from here and rely on os_access.h. unfortunately hal.h includes ch.h :(
#include <hal.h>
// *** IMPORTANT *** from painful experience we know that common_headers.h has to be included AFTER hal.h
// *** https://github.com/rusefi/rusefi/issues/1007 ***

View File

@ -12,8 +12,6 @@
#include <cstdint>
#include <cstddef>
// todo: migrate to external buffer so that different instances have different
// size of buffers?
class Logging {
public:
Logging() = delete;

View File

@ -138,8 +138,7 @@ public:
msg_t msg = filledBuffers.fetch(&line, TIME_INFINITE);
if (msg == MSG_RESET) {
// todo?
// what happens if MSG_RESET?
// FIXME what happens if MSG_RESET?
} else {
// Lock the buffer mutex - inhibit buffer swaps while writing
chibios_rt::MutexLocker lock(logBufferMutex);