ReadFirmware is used to read firmware srting and parse it into Mac structure
()
| 214 | |
| 215 | // ReadFirmware is used to read firmware srting and parse it into Mac structure |
| 216 | func (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 |
| 231 | func (m *Mac) FormatFWVersion() string { |
no test coverage detected