Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitced1d5c

Browse files
committed
fix: reference nrf device constants
1 parent76b87d5 commitced1d5c

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
funcsetEPDataPID(epuint32,dataOnebool) {
386386
val:=ep
387387
ifdataOne {
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)

[8]ページ先頭

©2009-2025 Movatter.jp