nicer log

This commit is contained in:
Johannes Wendel
2020-01-16 21:46:28 +01:00
parent 0f3e5e3857
commit d5d267ec5f
4 changed files with 22 additions and 21 deletions

View File

@@ -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)