You are setting it to the "0" character, instead of the number zero.
Code like yours which uses the 0| trick will handle it ok, but places that just do if (!bSettings.quiet) /* show notification */ will break, because !"<some text, even 0>" is always false.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
You are setting it to the
"0"
character, instead of the number zero.Code like yours which uses the
0|
trick will handle it ok, but places that just doif (!bSettings.quiet) /* show notification */
will break, because!"<some text, even 0>"
is always false.