Skip to content

Commit 9653ca3

Browse files
committed
fix: reference nrf device constants
1 parent 76e68ca commit 9653ca3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/machine/machine_nrf52840_usb.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,9 @@ func ReceiveUSBControlPacket() ([cdcLineInfoSize]byte, error) {
385385
func setEPDataPID(ep uint32, dataOne bool) {
386386
val := ep
387387
if dataOne {
388-
val |= USBD_DTOGGLE_VALUE_Data1 << USBD_DTOGGLE_VALUE_Pos
388+
val |= nrf.USBD_DTOGGLE_VALUE_Data1 << nrf.USBD_DTOGGLE_VALUE_Pos
389389
} else {
390-
val |= USBD_DTOGGLE_VALUE_Data0 << USBD_DTOGGLE_VALUE_Pos
390+
val |= nrf.USBD_DTOGGLE_VALUE_Data0 << nrf.USBD_DTOGGLE_VALUE_Pos
391391
}
392392
nrf.USBD.DTOGGLE.Set(val)
393393
}

0 commit comments

Comments
 (0)