You are checksumming the command without the leading $, I think that needs to be included.
$
I thing line 19 of the presented code add the leading "$"
It does, but that happens after the checksum is calculated. The cmd going into checksum() does not yet contain it.
cmd
checksum()
@HopeToBeUseful1day started
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 checksumming the command without the leading
$
, I think that needs to be included.