refactroring

This commit is contained in:
rusefi 2017-06-07 21:26:32 -04:00
parent 08f5b23a61
commit 3c58e4ee9d
2 changed files with 2 additions and 10 deletions

View File

@ -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();
}

View File

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