Update for new yocto rootfs #217

Merged
meierj merged 38 commits from mueller/yocto-rootfs into develop 2022-04-22 10:21:54 +02:00
2 changed files with 10 additions and 6 deletions
Showing only changes of commit 20bb1d73f5 - Show all commits

View File

@ -81,12 +81,16 @@ ReturnValue_t PCDUHandler::initialize() {
void PCDUHandler::initializeSwitchStates() { void PCDUHandler::initializeSwitchStates() {
using namespace pcdu; using namespace pcdu;
for (uint8_t idx = 0; idx < NUMBER_OF_SWITCHES; idx++) { try {
if (idx < PDU::CHANNELS_LEN) { for (uint8_t idx = 0; idx < NUMBER_OF_SWITCHES; idx++) {
switchStates[idx] = INIT_SWITCHES_PDU1[idx]; if (idx < PDU::CHANNELS_LEN) {
} else { switchStates[idx] = INIT_SWITCHES_PDU1.at(idx);
switchStates[idx] = INIT_SWITCHES_PDU2[idx]; } else {
switchStates[idx] = INIT_SWITCHES_PDU2.at(idx - PDU::CHANNELS_LEN);
}
} }
} catch (const std::out_of_range& err) {
sif::error << "PCDUHandler::initializeSwitchStates: " << err.what() << std::endl;
} }
} }

View File

@ -92,7 +92,7 @@ def build_cmd(args):
else: else:
target = args.target target = args.target
if args.invert: if args.invert:
cmd += f"{port_args} {address}:{args.source} {target}" cmd += f"{port_args} {address}:{source_files} {target}"
else: else:
cmd += f"{port_args} {source_files} {address}:{target}" cmd += f"{port_args} {source_files} {address}:{target}"
return cmd return cmd