only:!= OK vs == RESET

This commit is contained in:
Matthew Kennedy 2024-12-20 02:29:25 -05:00 committed by rusefillc
parent cb5cb4c6e1
commit a077919deb
1 changed files with 2 additions and 3 deletions

View File

@ -136,9 +136,8 @@ public:
LogLineBuffer* line; LogLineBuffer* line;
msg_t msg = filledBuffers.fetch(&line, TIME_INFINITE); msg_t msg = filledBuffers.fetch(&line, TIME_INFINITE);
if (msg == MSG_RESET) { if (msg != MSG_OK) {
// todo? // This should be impossible - neither timeout or reset should happen
// what happens if MSG_RESET?
} else { } else {
{ {
// Lock the buffer mutex - inhibit buffer swaps while writing // Lock the buffer mutex - inhibit buffer swaps while writing