Called for a direct read. This does not match up a rotation and should be used with the pll initialized with the LinearExtractor pll: required Returns: ReadResponse, explains its self
| 287 | // pll: required |
| 288 | // Returns: ReadResponse, explains its self |
| 289 | CommonBridgeTemplate::ReadResponse GreaseWeazleDiskBridge::readLinearData(PLL::BridgePLL& pll) { |
| 290 | GWResponse result = m_io.readData(pll); |
| 291 | m_motorTurnOnTime = std::chrono::steady_clock::now(); |
| 292 | |
| 293 | switch (result) { |
| 294 | case GWResponse::drOK: return ReadResponse::rrOK; |
| 295 | case GWResponse::drNoDiskInDrive: return ReadResponse::rrNoDiskInDrive; |
| 296 | default: return ReadResponse::rrError; |
| 297 | } |
| 298 | } |
| 299 | |
| 300 | |
| 301 |