Closed TobiX closed 7 years ago
I added a minor bug fix, so that every log line is written to SD immediately (thanks to @WinterMute for pointing that out), here is a new test build: https://up1.secretalgorithm.com/#jc6eivAFCn83kXGKBUDBVA
LGTM, though it may be preferred to let the user scroll through all of the log level options.
Also, unless it's changed (haven't checked IRC yet today) fsync still didn't get everything flushed to disk. Still a good thing to put in, though.
Switches the loglevel constant to a variable and makes it possible to switch between INFO and DEBUG from the main menu using the Y button.
"Screenshot"
Technical details: I moved local code in platform.cpp from static to an anonymous namespace which feels more C++y to me.
Here's a test build for the lazy: https://up1.secretalgorithm.com/#XyfwMMe60Cx6bZdx9zjFQg