From eb923e58f74dde0df0d775899a2ffa4ce89ba253 Mon Sep 17 00:00:00 2001 From: epsilonrt Date: Mon, 20 Mar 2023 19:39:53 +0100 Subject: [PATCH] Fixes #1 --- library.json | 2 +- library.properties | 2 +- src/source/eFlexPwmPin.cpp | 3 +-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/library.json b/library.json index 23c01f5..f023ca3 100644 --- a/library.json +++ b/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", diff --git a/library.properties b/library.properties index c654efb..8ee22a1 100644 --- a/library.properties +++ b/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 diff --git a/src/source/eFlexPwmPin.cpp b/src/source/eFlexPwmPin.cpp index 739e69a..6884d51 100644 --- a/src/source/eFlexPwmPin.cpp +++ b/src/source/eFlexPwmPin.cpp @@ -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); @@ -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; }