mirror of
https://github.com/anklimov/lighthub
synced 2025-12-06 11:49:51 +03:00
compilation fix for slim options
This commit is contained in:
@@ -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()
|
||||
{
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user