Skip to content

Commit

Permalink
!= OK vs == RESET
Browse files Browse the repository at this point in the history
  • Loading branch information
mck1117 committed Dec 20, 2024
1 parent 0abe433 commit ef485e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/util/loggingcentral.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ class LoggingBufferFlusher : public ThreadController<256> {
LogLineBuffer* line;
msg_t msg = filledBuffers.fetch(&line, TIME_INFINITE);

if (msg == MSG_RESET) {
// FIXME what happens if MSG_RESET?
if (msg != MSG_OK) {
// This should be impossible - neither timeout or reset should happen
} else {
{
// Lock the buffer mutex - inhibit buffer swaps while writing
Expand Down

0 comments on commit ef485e8

Please sign in to comment.