Skip to content

Commit 9686e8b

Browse files
committed
⚠️ add ball detect signal
1 parent 4ad9dd7 commit 9686e8b

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
@@ -166,10 +166,10 @@ func RunSerial(chclient chan bool, MyID uint32) {
166166
// time.Sleep(16 * time.Millisecond) //少し待つ
167167
//log.Printf("Sent %v bytes\n", n) //何バイト送信した?
168168
if kicker_enable || sendbytes[8] != 0 {
169-
log.Printf("Kickerval: %3d | sendbytes[8]: %3d\n", kicker_val, sendbytes[8])
169+
log.Printf("Kickerval: %3d | sendbytes[8]: %3d | ball_detect: %t\n", kicker_val, sendbytes[8], recvdata.IsHoldBall)
170170
}
171171
if chip_enable || sendbytes[9] != 0 {
172-
log.Printf("Chipval: %3d | sendbytes[9]: %3d\n", chip_val, sendbytes[9])
172+
log.Printf("Chipval: %3d | sendbytes[9]: %3d | ball_detect: %t\n", chip_val, sendbytes[9], recvdata.IsHoldBall)
173173
}
174174
// log.Println(sendbytes) //送信済みのバイトを表示
175175

0 commit comments

Comments
 (0)