diff --git a/firmware/console/console_io.cpp b/firmware/console/console_io.cpp index 7053a22493..1edb901e44 100644 --- a/firmware/console/console_io.cpp +++ b/firmware/console/console_io.cpp @@ -299,10 +299,6 @@ bool lockAnyContext(void) { return false; } -bool lockOutputBuffer(void) { - return lockAnyContext(); -} - void unlockAnyContext(void) { if (isIsrContext()) { chSysUnlockFromISR() @@ -312,7 +308,3 @@ void unlockAnyContext(void) { ; } } - -void unlockOutputBuffer(void) { - unlockAnyContext(); -} diff --git a/firmware/util/datalogging.h b/firmware/util/datalogging.h index 1999dc5af5..50e9ada523 100644 --- a/firmware/util/datalogging.h +++ b/firmware/util/datalogging.h @@ -68,8 +68,8 @@ extern "C" { #endif /* __cplusplus */ -bool lockOutputBuffer(void); -void unlockOutputBuffer(void); +#define lockOutputBuffer lockAnyContext +#define unlockOutputBuffer unlockAnyContext uint32_t remainingSize(Logging *logging);