Log: int2str
This commit is contained in:
@@ -9,6 +9,8 @@
|
||||
|
||||
#include "utility/config.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
namespace flippR_driver
|
||||
{
|
||||
namespace output
|
||||
@@ -56,7 +58,7 @@ void DriverBoardPinController::deactivate(items::DriverBoardItem &driver_board_i
|
||||
|
||||
void DriverBoardPinController::select_address(uint8_t address)
|
||||
{
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Select address " << address;
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Select address " << std::to_string(address);
|
||||
address = address % 8;
|
||||
write_pin(this->address_pins[0], address & 0b001);
|
||||
write_pin(this->address_pins[1], address & 0b010);
|
||||
@@ -65,7 +67,7 @@ void DriverBoardPinController::select_address(uint8_t address)
|
||||
|
||||
void DriverBoardPinController::select_mux(uint8_t mux)
|
||||
{
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Select mux " << mux;
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Select mux " << std::to_string(mux);
|
||||
write_pin(this->mux_enable_pins[mux], 0);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user