bugfix: Correct Response row and col values (swap them)

This commit is contained in:
Matthew R. Wilson committed 2025-06-07 14:04:21 -07:00
1 parent 38b0999238
commit 3a38ce6e4a
2 files changed
+10 -4

No files matched your search

+2 -2
View File
@@ -128,8 +128,8 @@ func readPosition(c net.Conn) (row, col, addr int, err error) {
// Decode the raw position
addr = decodeBufAddr([2]byte{raw[0], raw[1]})
row = addr % 80
col = (addr - row) / 80
col = addr % 80
row = (addr - col) / 80
debugf("Got position bytes %02x %02x, decoded to %d\n", raw[0], raw[1],
addr)