WaitBoot waiting for boot logo to show
()
| 264 | |
| 265 | // WaitBoot waiting for boot logo to show |
| 266 | func (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 |