compilation fix for slim options

This commit is contained in:
2020-08-15 03:01:39 +03:00
parent b6610a31e7
commit 1f1cd1024f
2 changed files with 4 additions and 0 deletions

View File

@@ -1110,6 +1110,7 @@ uint8_t readCache::digitalReadCached(uint8_t _pin)
///TBD
}
#ifdef MCP23017
uint8_t readCache::I2CReadBit(uint8_t _type, uint8_t _addr, uint8_t _pin)
{
if (addr!=_addr || type != _type)
@@ -1120,6 +1121,7 @@ if (addr!=_addr || type != _type)
}
return (cached_data >> _pin ) & 0x1;
}
#endif
void readCache::invalidateInputCache()
{

View File

@@ -189,7 +189,9 @@ public:
readCache();
uint16_t analogReadCached (uint8_t pin);
uint8_t digitalReadCached(uint8_t pin);
#ifdef MCP23017
uint8_t I2CReadBit(uint8_t type, uint8_t addr, uint8_t pin);
#endif
void invalidateInputCache();
protected:
uint8_t addr;