Skip to content

Commit c3fd92f

Browse files
committed
fix error begin func (cannot compile)
1 parent 52476c5 commit c3fd92f

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

library.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "FlowSensor",
3-
"version": "1.4.0",
3+
"version": "1.5.0",
44
"keywords": "sensor, arduino",
55
"description": "Flow Sensor Library, Water Flow Rate, Water Volume",
66
"repository": {

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FlowSensor
2-
version=1.4.0
2+
version=1.5.0
33
author=hafidhh
44
maintainer=hafidhh <[email protected]>
55
sentence=Flow Sensor library for Arduino.

src/FlowSensor.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ void FlowSensor::setPin(uint8_t pin)
5151
* @param userFunc
5252
* @param pullup default value is fasle (0), if you have external pull up you can set to true (1)
5353
*/
54-
void FlowSensor::begin(void (*userFunc)(void), bool pullup = false)
54+
void FlowSensor::begin(void (*userFunc)(void), bool pullup)
5555
{
5656
if (pullup == true)
5757
pinMode(this->_pin, INPUT);

src/FlowSensor.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class FlowSensor
3535

3636
public:
3737
FlowSensor(uint16_t type ,uint8_t pin);
38-
void begin(void (*userFunc)(void));
38+
void begin(void (*userFunc)(void), bool pullup = false);
3939
void count();
4040
void read(long calibration = 0);
4141
void setType(uint16_t type);

0 commit comments

Comments
 (0)