Skip to content

Commit

Permalink
v1.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
mprograms committed Dec 23, 2021
1 parent 354b418 commit 849425b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
7 changes: 7 additions & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [v1.1.3]
### Fixed
- Removed default parameter value for pushType(). The function pushType() already requires a parameter so the default is redundant.

### Changed
- readme.md changed pushType() function documentation to make it clearer that a parameter is required.

## [v1.1.2]
### Fixed
- Typo in library.properties.
Expand Down
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=SimpleRotary
version=1.1.2
version=1.1.3
author=MPrograms
maintainer=MPrograms
sentence=Library for using rotary encorders.
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ This function will return a single byte of three possible values:

```
void loop(){
byte t = rotary.pushType();
byte t = rotary.pushType(1000);
// Short Push
if ( t == 1 ) {
// Do something cool.
Expand Down
2 changes: 1 addition & 1 deletion src/SimpleRotary.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ byte SimpleRotary::pushLong(int i) {
@return byte
**/
byte SimpleRotary::pushType(int i = 1000){
byte SimpleRotary::pushType(int i){
_updateTime();
_statusS = ( digitalRead(_pinS) == _trigger ) ? true : false;
byte val = 0x00;
Expand Down

0 comments on commit 849425b

Please sign in to comment.