compiing again
This commit is contained in:
@@ -50,13 +50,15 @@ bool PinController::read_pin(uint8_t address)
|
||||
|
||||
void PinController::initialize_port_expander(const uint8_t i2c_address, const uint8_t pin_base)
|
||||
{
|
||||
auto initialized_port_extender = this->initialized_port_extenders.insert(std::pair<uint8_t, uint8_t>(i2c_address, pin_base);
|
||||
if(initialized_port_extender->second)
|
||||
auto initialized_port_extender = this->initialized_port_extenders.insert(std::pair<uint8_t, uint8_t>(i2c_address, pin_base));
|
||||
if(not initialized_port_extender.second)
|
||||
{
|
||||
if(initialized_port_extender->first->second != pin_base)
|
||||
if(initialized_port_extender.first->second != pin_base)
|
||||
{
|
||||
CLOG(ERROR, OUTPUT_LOGGER) << "Port extender with address " << i2c_address
|
||||
<< " is already initialized with pin base " << pin_base;
|
||||
char hex_string[4];
|
||||
sprintf(hex_string, "%X", i2c_address);
|
||||
CLOG(WARNING, OUTPUT_LOGGER) << "Port extender with address 0x" << hex_string
|
||||
<< " is already initialized with pin base " << int(pin_base) << ". Check config files!";
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user