various crust
This commit is contained in:
parent
82346c1650
commit
5fae1b4f55
|
@ -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 ***
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue