Skip to content

Commit 6e60300

Browse files
committed
⚠️ mm to cm
1 parent 830b94b commit 6e60300

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

serial.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,8 @@ func RunSerial(chclient chan bool, MyID uint32) {
148148
sendbytes[17] = 0
149149
}
150150
} else {
151-
sendbytes[17] = byte(imageData.Image_y)
152-
prevImageY = int(imageData.Image_y)
151+
sendbytes[17] = byte(int(imageData.Image_y / 10))
152+
prevImageY = int(imageData.Image_y / 10)
153153
zeroCountY = 0
154154
}
155155

0 commit comments

Comments
 (0)