Fixed bug in closing SerialPort explicitly; it takes care of closing itself.

git-svn-id: svn://svn.code.sf.net/p/stella/code/trunk@3142 8b62c5a3-ac7e-4cc8-8f21-d9a121418aba
This commit is contained in:
stephena 2015-01-24 16:28:06 +00:00
parent e1dae564e2
commit ebfc207d3e
3 changed files with 14 additions and 8 deletions

View File

@ -12,6 +12,14 @@
Release History Release History
=========================================================================== ===========================================================================
4.5 to 4.6: (January 1, 2015)
* Fixed bug when running ROMs using AtariVox controllers; the app would
crash upon exiting the ROM.
-Have fun!
4.2 to 4.5: (January 1, 2015) 4.2 to 4.5: (January 1, 2015)
* The conversion to C++11 has begun :) From this point on, to build * The conversion to C++11 has begun :) From this point on, to build
@ -59,8 +67,6 @@
* Updated included PNG library to latest stable version. * Updated included PNG library to latest stable version.
-Have fun!
4.1.1 to 4.2: (October 28, 2014) 4.1.1 to 4.2: (October 28, 2014)

View File

@ -48,7 +48,6 @@ AtariVox::AtariVox(Jack jack, const Event& event, const System& system,
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
AtariVox::~AtariVox() AtariVox::~AtariVox()
{ {
mySerialPort.closePort();
} }
// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

View File

@ -44,11 +44,6 @@ class SerialPort
*/ */
virtual bool openPort(const string& device) { return false; } virtual bool openPort(const string& device) { return false; }
/**
Close a previously opened serial port.
*/
virtual void closePort() { }
/** /**
Read a byte from the serial port. Read a byte from the serial port.
@ -64,6 +59,12 @@ class SerialPort
@return True if a byte was written, else false @return True if a byte was written, else false
*/ */
virtual bool writeByte(const uInt8* data) { return false; } virtual bool writeByte(const uInt8* data) { return false; }
private:
/**
Close a previously opened serial port.
*/
virtual void closePort() { }
}; };
#endif #endif