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

Method WaitBoot

sa53/protocol/protocol.go:266–277  ·  view source on GitHub ↗

WaitBoot waiting for boot logo to show

()

Source from the content-addressed store, hash-verified

264
265// WaitBoot waiting for boot logo to show
266func (m *Mac) WaitBoot() error {
267 res, err := m.readResult()
268 if err != nil {
269 return err
270 }
271
272 if res != ansBoot {
273 return fmt.Errorf("wrong answer after boot: %s", res)
274 }
275
276 return nil
277}
278
279// cmdResult is the firmware-side write+read helper. Distinct from Cmd so the
280// firmware upgrade flow keeps its validated behavior (no drain, fixed-buffer

Callers 1

flashFunction · 0.80

Calls 1

readResultMethod · 0.95

Tested by

no test coverage detected