MCPcopy Create free account
hub / github.com/BlitterStudio/amiberry / closePort

Method closePort

external/floppybridge/src/ArduinoInterface.cpp:573–585  ·  view source on GitHub ↗

Closes the port down

Source from the content-addressed store, hash-verified

571
572// Closes the port down
573void 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
588bool ArduinoInterface::trackContainsData(const RawTrackDataDD& trackData) const {

Callers 3

isPortCorrectMethod · 0.45
attemptToSyncMethod · 0.45
internalOpenPortMethod · 0.45

Calls 1

isPortOpenMethod · 0.80

Tested by

no test coverage detected