mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-03 06:27:47 +00:00
Update comments
This commit is contained in:
@@ -81,7 +81,6 @@ func (r *RTL8720DN) readThread() {
|
||||
|
||||
length := uint16(readBuf[0]) + uint16(readBuf[1])<<8
|
||||
crc := uint16(readBuf[2]) + uint16(readBuf[3])<<8
|
||||
//fmt.Printf("len %d (%X) crc %04X\r\n", length, length, crc)
|
||||
|
||||
n, _ = io.ReadFull(r.port, payload[:length])
|
||||
if r.debug {
|
||||
@@ -91,7 +90,6 @@ func (r *RTL8720DN) readThread() {
|
||||
}
|
||||
|
||||
n = int(length)
|
||||
//fmt.Printf("rx : %2d : %s\n", n, dumpHex(payload[:n]))
|
||||
|
||||
crcNew := computeCRC16(payload[:n])
|
||||
if g, e := crcNew, crc; g != e {
|
||||
|
||||
+1
-1
@@ -1,6 +1,6 @@
|
||||
package rtl8720dn
|
||||
|
||||
// TODO: 後で整理する
|
||||
// TODO: Implement these when needed
|
||||
// https://github.com/Seeed-Studio/seeed-ambd-firmware/blob/master/erpc_idl/erpc_shim/rpc_system_header.h
|
||||
|
||||
type RPC_T_GAP_CAUSE int32
|
||||
|
||||
Reference in New Issue
Block a user