diff --git a/documentation/changelog.md b/documentation/changelog.md index 245984a..a90fb77 100644 --- a/documentation/changelog.md +++ b/documentation/changelog.md @@ -1,5 +1,10 @@ # Change Log +## Release 2.19 +28 September 2017 + +* Fixes bug in accepting analog data from a Mega 2560 pin 15. + ## Release 2.18 (overwrites 2.17) 17 September 2017 diff --git a/pymata_aio/private_constants.py b/pymata_aio/private_constants.py index 95d7a0f..6a5c655 100644 --- a/pymata_aio/private_constants.py +++ b/pymata_aio/private_constants.py @@ -70,7 +70,7 @@ class PrivateConstants: SYSEX_REALTIME = 0x7F # MIDI Reserved for realtime messages # reserved for PyMata - PYMATA_VERSION = "2.18" + PYMATA_VERSION = "2.19" # each byte represents a digital port # and its value contains the current port settings diff --git a/pymata_aio/pymata_core.py b/pymata_aio/pymata_core.py index 7ad3e7a..5635ced 100644 --- a/pymata_aio/pymata_core.py +++ b/pymata_aio/pymata_core.py @@ -1305,7 +1305,7 @@ async def _command_dispatcher(self): sysex = [] await asyncio.sleep(self.sleep_tune) # if this is an analog message, process it. - elif 0xE0 <= next_command_byte < 0xEF: + elif 0xE0 <= next_command_byte <= 0xEF: # analog message # assemble the entire analog message in command command = [] diff --git a/setup.py b/setup.py index 19044b8..55d5c4c 100644 --- a/setup.py +++ b/setup.py @@ -2,7 +2,7 @@ setup( name='pymata-aio', - version='2.18', + version='2.19', packages=['pymata_aio'], install_requires=['pyserial==2.7', 'websockets'], url='https://github.com/MrYsLab/pymata-aio/wiki',