MCPcopy Create free account
hub / github.com/facebook/time / ReadFirmware

Method ReadFirmware

sa53/protocol/protocol.go:216–228  ·  view source on GitHub ↗

ReadFirmware is used to read firmware srting and parse it into Mac structure

()

Source from the content-addressed store, hash-verified

214
215// ReadFirmware is used to read firmware srting and parse it into Mac structure
216func (m *Mac) ReadFirmware() error {
217 res, err := m.cmdResult(cmdGetFirmwareVersion)
218 if err != nil {
219 return err
220 }
221
222 if res == ansError {
223 return ErrFWFormat
224 }
225
226 err = m.parseMacFirmware(res)
227 return err
228}
229
230// FormatFWVersion return string representation of firmware version
231func (m *Mac) FormatFWVersion() string {

Callers 2

readVersionFunction · 0.80
flashFunction · 0.80

Calls 2

cmdResultMethod · 0.95
parseMacFirmwareMethod · 0.95

Tested by

no test coverage detected