Skip to content

Commit 726eb85

Browse files
committed
handle the communication problem between a board and a module
1 parent 1961ca0 commit 726eb85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: cli/firmware/getversion.go

+3
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ func getVersion(board *firmwareindex.IndexBoard) (fwVersion string, err error) {
127127
semver := semver.ParseRelaxed(version)
128128
return semver.String(), nil
129129
}
130+
if strings.HasPrefix(line, "Communication with WiFi module failed!") {
131+
return "", fmt.Errorf("communication with WiFi module failed")
132+
}
130133
}
131134
return "", fmt.Errorf("could not find the version string to parse")
132135
}

0 commit comments

Comments
 (0)