Any variable that is %modulo operator with 1 will output 0. So that code is saying, 4167* (1 - 0) ... which is equivalent to 4167 * 1 equivalent to 4167.
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.
https://github.com/espruino/BangleApps/blob/f1ce196ad1de28f1d07affe81d27ae4d284bd6f7/apps/doztime/app.js#L175
Any variable that is
%
modulo operator
with 1 will output 0. So that code is saying,4167* (1 - 0)
... which is equivalent to4167 * 1
equivalent to4167
.Am I wrong?