mirror of
https://github.com/arendst/Tasmota.git
synced 2025-07-23 18:56:38 +00:00
Support new pin handling changes
This commit is contained in:
parent
691e1e9653
commit
0153601dc2
@ -115,8 +115,8 @@ void WindMeterInit(void)
|
|||||||
WindMeterCheckSampleCount();
|
WindMeterCheckSampleCount();
|
||||||
#endif // USE_WINDMETER_NOSTATISTICS
|
#endif // USE_WINDMETER_NOSTATISTICS
|
||||||
|
|
||||||
pinMode(pin[GPIO_WINDMETER_SPEED], INPUT_PULLUP);
|
pinMode(Pin(GPIO_WINDMETER_SPEED), INPUT_PULLUP);
|
||||||
attachInterrupt(pin[GPIO_WINDMETER_SPEED], WindMeterUpdateSpeed, FALLING);
|
attachInterrupt(Pin(GPIO_WINDMETER_SPEED), WindMeterUpdateSpeed, FALLING);
|
||||||
}
|
}
|
||||||
|
|
||||||
void WindMeterEverySecond(void)
|
void WindMeterEverySecond(void)
|
||||||
@ -342,7 +342,7 @@ bool Xsns68Cmnd(void)
|
|||||||
bool Xsns68(uint8_t function)
|
bool Xsns68(uint8_t function)
|
||||||
{
|
{
|
||||||
bool result = false;
|
bool result = false;
|
||||||
if (pin[GPIO_WINDMETER_SPEED] < 99) {
|
if (PinUsed(GPIO_WINDMETER_SPEED)) {
|
||||||
switch (function) {
|
switch (function) {
|
||||||
case FUNC_INIT:
|
case FUNC_INIT:
|
||||||
WindMeterInit();
|
WindMeterInit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user