1
0
mirror of https://github.com/DCC-EX/CommandStation-EX.git synced 2024-11-26 17:46:14 +01:00

merge 3.2.0 rc13 into ESP88

This commit is contained in:
Ash-4 2022-02-05 23:34:16 -06:00 committed by GitHub
parent 5ac18b8793
commit a952ec97d6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -47,7 +47,7 @@ public:
} }
PCF8574(VPIN firstVpin, uint8_t nPins, uint8_t I2CAddress, int interruptPin=-1) PCF8574(VPIN firstVpin, uint8_t nPins, uint8_t I2CAddress, int interruptPin=-1)
: GPIOBase<uint8_t>((FSH *)F("PCF8574"), firstVpin, min(nPins, 8), I2CAddress, interruptPin) : GPIOBase<uint8_t>((FSH *)F("PCF8574"), firstVpin, min<int>(nPins, 8), I2CAddress, interruptPin)
{ {
requestBlock.setReadParams(_I2CAddress, inputBuffer, 1); requestBlock.setReadParams(_I2CAddress, inputBuffer, 1);
} }
@ -99,4 +99,4 @@ private:
uint8_t inputBuffer[1]; uint8_t inputBuffer[1];
}; };
#endif #endif