Skip to content

Commit

Permalink
去掉错误解析的设备
Browse files Browse the repository at this point in the history
  • Loading branch information
IoTServ committed Feb 24, 2021
1 parent 01ca520 commit eb18fb6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/models.go
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ func (cm *ConfigModel) ListDevices() (devices []*AdbDeviceInfo, err error) {
//log.Println(line)
serialInfo := strings.SplitN(line, " ", 2)
//log.Println(serialInfo[0])
if strconv.QuoteToGraphic(serialInfo[0]) == "" {
continue
}
devices = append(devices, &AdbDeviceInfo{Serial: serialInfo[0]})
}

Expand Down

0 comments on commit eb18fb6

Please sign in to comment.