Log: int2str

This commit is contained in:
Jonas Zeunert
2021-04-21 20:56:39 +02:00
parent 64a7ca146a
commit d8b2e454af

View File

@@ -9,6 +9,8 @@
#include "utility/config.h" #include "utility/config.h"
#include <string>
namespace flippR_driver namespace flippR_driver
{ {
namespace output namespace output
@@ -56,7 +58,7 @@ void DriverBoardPinController::deactivate(items::DriverBoardItem &driver_board_i
void DriverBoardPinController::select_address(uint8_t address) 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; address = address % 8;
write_pin(this->address_pins[0], address & 0b001); write_pin(this->address_pins[0], address & 0b001);
write_pin(this->address_pins[1], address & 0b010); 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) 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); write_pin(this->mux_enable_pins[mux], 0);
} }