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

Method isPortCorrect

external/floppybridge/src/ArduinoInterface.cpp:363–370  ·  view source on GitHub ↗

Attempts to verify if the reader/writer is running on this port

Source from the content-addressed store, hash-verified

361
362// Attempts to verify if the reader/writer is running on this port
363bool ArduinoInterface::isPortCorrect(const std::wstring& portName) {
364 // Attempts to verify if the reader/writer is running on this port
365 SerialIO port;
366 std::string version;
367 DiagnosticResponse dr = internalOpenPort(portName, false, true, version, port);
368 port.closePort();
369 return dr == DiagnosticResponse::drOK;
370}
371
372// Attempt to sync and get version
373DiagnosticResponse ArduinoInterface::attemptToSync(std::string& versionString, SerialIO& port) {

Callers

nothing calls this directly

Calls 1

closePortMethod · 0.45

Tested by

no test coverage detected