Adapts logging
This commit is contained in:
@@ -24,7 +24,7 @@ std::once_flag PinController::GPIO_LIB_INITIALIZED;
|
||||
|
||||
PinController::PinController()
|
||||
{
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "Created PinController";
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Created PinController";
|
||||
std::call_once(GPIO_LIB_INITIALIZED, wiringPiSetup);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ void PinController::initialize_port_expander(const uint8_t i2c_address, const ui
|
||||
mcp23017Setup(pin_base, i2c_address);
|
||||
char hex_string[4];
|
||||
sprintf(hex_string, "%X", i2c_address);
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "MCP23017 initialized with i2c-address 0x" << hex_string << " and pin-base " << int(pin_base);
|
||||
CLOG(INFO, OUTPUT_LOGGER) << "MCP23017 initialized with i2c-address 0x" << hex_string << " and pin-base " << int(pin_base) << ".";
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user