Closes the port down
| 571 | |
| 572 | // Closes the port down |
| 573 | void ArduinoInterface::closePort() { |
| 574 | LastCommand old = m_lastCommand; |
| 575 | if (m_comPort.isPortOpen()) { |
| 576 | // Force the drive to power down |
| 577 | enableReading(false); |
| 578 | // And close the handle |
| 579 | m_comPort.closePort(); |
| 580 | } |
| 581 | m_inWriteMode = false; |
| 582 | m_isWriteProtected = false; |
| 583 | m_diskInDrive = false; |
| 584 | m_lastCommand = old; |
| 585 | } |
| 586 | |
| 587 | // Returns true if the track actually contains some data, else its considered blank or unformatted |
| 588 | bool ArduinoInterface::trackContainsData(const RawTrackDataDD& trackData) const { |
no test coverage detected