nicer log
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
// Created by rhetenor on 14.12.18.
|
||||
//
|
||||
|
||||
#include <utility/helper_functions.hpp>
|
||||
#include "output/detail/SoundBoardPinController.h"
|
||||
|
||||
#include "utility/config.h"
|
||||
@@ -80,15 +81,7 @@ void SoundBoardPinController::set_address_pins(std::array<uint8_t, 7> address_pi
|
||||
this->initialize_output_pin(pin);
|
||||
}
|
||||
|
||||
//print string in a nice manner
|
||||
std::stringstream ss;
|
||||
for (auto & p : address_pins)
|
||||
{
|
||||
ss << int{p} << ", ";
|
||||
}
|
||||
ss << std::string(2, 0x08);
|
||||
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Pin addresses for sounds set to: [" << ss.str() << "]";
|
||||
CLOG(DEBUG, OUTPUT_LOGGER) << "Pin addresses for sounds set to: " + help::make_list_string<std::array<uint8_t, 7>>(address_pins);
|
||||
}
|
||||
|
||||
void SoundBoardPinController::set_fire_address(const uint8_t &fire_address)
|
||||
|
||||
Reference in New Issue
Block a user