Update comments

This commit is contained in:
sago35
2021-06-27 14:00:29 +09:00
committed by Ron Evans
parent 0bc3702dd0
commit a575b2a4ed
2 changed files with 1 additions and 3 deletions
-2
View File
@@ -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
View File
@@ -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