refactroring
This commit is contained in:
parent
08f5b23a61
commit
3c58e4ee9d
|
@ -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();
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue