Skip to content

Commit 830b94b

Browse files
committed
⚠️ change resolution 0-639 to 0-255
1 parent b04c56b commit 830b94b

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
@@ -135,8 +135,8 @@ func RunSerial(chclient chan bool, MyID uint32) {
135135
sendbytes[16] = 0
136136
}
137137
} else {
138-
sendbytes[16] = byte(imageData.Image_x)
139-
prevImageX = int(imageData.Image_x)
138+
sendbytes[16] = byte(imageData.Image_x * 255 / 639)
139+
prevImageX = int(imageData.Image_x * 255 / 639)
140140
zeroCountX = 0
141141
}
142142

0 commit comments

Comments
 (0)