working on factory no motivation

This commit is contained in:
Jonas Zeunert
2019-12-27 21:20:42 +01:00
parent 645ef58c4c
commit 2cf88d755e
2 changed files with 10 additions and 3 deletions

View File

@@ -186,7 +186,7 @@ uint8_t get_sound_fire_address()
auto pin_base = get_pin_base(fire_pin, port_extenders, "sound_config.json");
auto address = get_value<uint8_t>("address", fire_pin, "sound_config.json");
return pin_base + address;
return address;
}
std::map<std::string, uint8_t> parse_pins_display_board(std::istream &display_config)
@@ -330,6 +330,12 @@ type get_value(const std::string & name, json & object, const std::string & file
return element;
}
std::shared_ptr<SoundBoardPinController> create_SoundBoardPinController()
{
return std::shared_ptr<SoundBoardPinController>();
}
}
}
}

View File

@@ -18,8 +18,9 @@ SoundBoardPinController::SoundBoardPinController(std::shared_ptr<std::mutex> out
uint8_t fire_address,
const std::vector<uint8_t> address_pins) :
output_item_mutex(output_item_mutex),
fire_address(this->fire_address),
address_pins(this->address_pins)
pin_base(pin_base),
fire_address(fire_address),
address_pins(address_pins)
{
CLOG(INFO, OUTPUT_LOGGER) << "Created SoundBoardPinController";
}