Skip to content

Commit

Permalink
Fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
epsilonrt committed Mar 20, 2023
1 parent 25885a2 commit eb923e5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.json
@@ -1,6 +1,6 @@
{
"name": "eFlexPwm",
"version": "0.2.1",
"version": "0.2.2",
"keywords": "pwm, eflexpwm, power stage, power control",
"description": "Arduino eFlexPwm library for Teensy 4.x",
"homepage": "https://epsilonrt.github.io/eFlexPwm",
Expand Down
2 changes: 1 addition & 1 deletion library.properties
@@ -1,5 +1,5 @@
name=eFlexPwm
version=0.2.1
version=0.2.2
author=Pascal Jean aka epsilonrt
maintainer=epsilonrt
sentence=Arduino eFlexPwm library for Teensy 4.x
Expand Down
3 changes: 1 addition & 2 deletions src/source/eFlexPwmPin.cpp
Expand Up @@ -37,7 +37,7 @@ namespace eFlex {
//-----------------------------------------------------------------------------
// Pin class
//-----------------------------------------------------------------------------
Pin::Pin (int number) {
Pin::Pin (int number) : m_number (number) {

if (number != -1) {
const struct pwm_pin_info_struct *info = pinInfo (number);
Expand All @@ -47,7 +47,6 @@ namespace eFlex {
if (info->channel != 0) {

m_channel = (info->channel == 1 ? ChanA : ChanB);
m_number = number;
m_module = info->module;
m_muxval = info->muxval;
}
Expand Down

0 comments on commit eb923e5

Please sign in to comment.