diff --git a/libraries/MCP23017_RT/CHANGELOG.md b/libraries/MCP23017_RT/CHANGELOG.md index cc33e87a..735e1633 100644 --- a/libraries/MCP23017_RT/CHANGELOG.md +++ b/libraries/MCP23017_RT/CHANGELOG.md @@ -6,6 +6,11 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## [0.7.0] 2024-06-06 +- fix #33 bug, kudos to JelleWilbrink + +---- + ## [0.6.3] 2024-05-25 - sync MCP23S17, add several interrupt functions (experimental) - add **MCP23x17_registers.h** diff --git a/libraries/MCP23017_RT/MCP23017.cpp b/libraries/MCP23017_RT/MCP23017.cpp index 44ed713f..c5ae5187 100644 --- a/libraries/MCP23017_RT/MCP23017.cpp +++ b/libraries/MCP23017_RT/MCP23017.cpp @@ -1,7 +1,7 @@ // // FILE: MCP23017.cpp // AUTHOR: Rob Tillaart -// VERSION: 0.6.3 +// VERSION: 0.7.0 // PURPOSE: Arduino library for I2C MCP23017 16 channel port expander // DATE: 2019-10-12 // URL: https://github.com/RobTillaart/MCP23017_RT @@ -756,7 +756,7 @@ bool MCP23017::writeReg16(uint8_t reg, uint16_t value) _wire->beginTransmission(_address); _wire->write(reg); _wire->write(value >> 8); - _wire->write(value && 0xFF); + _wire->write(value & 0xFF); if (_wire->endTransmission() != 0) { _error = MCP23017_I2C_ERROR; diff --git a/libraries/MCP23017_RT/MCP23017.h b/libraries/MCP23017_RT/MCP23017.h index 341e01c3..86036b6c 100644 --- a/libraries/MCP23017_RT/MCP23017.h +++ b/libraries/MCP23017_RT/MCP23017.h @@ -2,7 +2,7 @@ // // FILE: MCP23017.h // AUTHOR: Rob Tillaart -// VERSION: 0.6.3 +// VERSION: 0.7.0 // PURPOSE: Arduino library for I2C MCP23017 16 channel port expander // DATE: 2019-10-12 // URL: https://github.com/RobTillaart/MCP23017_RT @@ -15,7 +15,7 @@ #include "MCP23x17_registers.h" -#define MCP23017_LIB_VERSION (F("0.6.3")) +#define MCP23017_LIB_VERSION (F("0.7.0")) #define MCP23017_OK 0x00 #define MCP23017_PIN_ERROR 0x81 diff --git a/libraries/MCP23017_RT/library.json b/libraries/MCP23017_RT/library.json index 25ec782a..61a36101 100644 --- a/libraries/MCP23017_RT/library.json +++ b/libraries/MCP23017_RT/library.json @@ -15,7 +15,7 @@ "type": "git", "url": "https://github.com/RobTillaart/MCP23017_RT.git" }, - "version": "0.6.3", + "version": "0.7.0", "license": "MIT", "frameworks": "*", "platforms": "*", diff --git a/libraries/MCP23017_RT/library.properties b/libraries/MCP23017_RT/library.properties index 6ade5f5f..f3745bcd 100644 --- a/libraries/MCP23017_RT/library.properties +++ b/libraries/MCP23017_RT/library.properties @@ -1,5 +1,5 @@ name=MCP23017_RT -version=0.6.3 +version=0.7.0 author=Rob Tillaart maintainer=Rob Tillaart sentence=Arduino library for I2C MCP23017 16 channel port expander 16 IO-lines