fnogatz / dgtchess

An event-driven JavaScript connector for electronic DGT chess boards
GNU General Public License v3.0
24 stars 7 forks source link

Crashes with #15

Open murkle opened 1 year ago

murkle commented 1 year ago

It crashes quite often for me with "RangeError: offset is out of bounds here

            message.set(value, pos)

This works as a quick fix, can't see what the proper fix is though sorry

    const message = new Uint8Array(cmd.length + 100 /* + 100 is quick hack to avoid "RangeError: offset is out of bounds" error */)
murkle commented 1 year ago

Note: board returns 4.1 as version