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

Method Upgrade

sa53/protocol/protocol.go:304–314  ·  view source on GitHub ↗

Upgrade is to switch MAC to Upgrade mode

()

Source from the content-addressed store, hash-verified

302
303// Upgrade is to switch MAC to Upgrade mode
304func (m *Mac) Upgrade() error {
305 res, err := m.cmdResult(cmdBsl)
306 if err != nil {
307 return err
308 }
309
310 if res != ansBsl {
311 return fmt.Errorf("switch to Upgrade mode error, answer: %s", res)
312 }
313 return nil
314}
315
316// XModemInit is to init XModem receiver in MAC
317func (m *Mac) XModemInit() error {

Callers 1

flashFunction · 0.80

Calls 1

cmdResultMethod · 0.95

Tested by

no test coverage detected