Merge remote-tracking branch 'origin/develop' into mueller/yocto-rootfs
This commit is contained in:
commit
20bb1d73f5
@ -81,13 +81,17 @@ ReturnValue_t PCDUHandler::initialize() {
|
||||
|
||||
void PCDUHandler::initializeSwitchStates() {
|
||||
using namespace pcdu;
|
||||
try {
|
||||
for (uint8_t idx = 0; idx < NUMBER_OF_SWITCHES; idx++) {
|
||||
if (idx < PDU::CHANNELS_LEN) {
|
||||
switchStates[idx] = INIT_SWITCHES_PDU1[idx];
|
||||
switchStates[idx] = INIT_SWITCHES_PDU1.at(idx);
|
||||
} else {
|
||||
switchStates[idx] = INIT_SWITCHES_PDU2[idx];
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
void PCDUHandler::readCommandQueue() {
|
||||
|
@ -92,7 +92,7 @@ def build_cmd(args):
|
||||
else:
|
||||
target = args.target
|
||||
if args.invert:
|
||||
cmd += f"{port_args} {address}:{args.source} {target}"
|
||||
cmd += f"{port_args} {address}:{source_files} {target}"
|
||||
else:
|
||||
cmd += f"{port_args} {source_files} {address}:{target}"
|
||||
return cmd
|
||||
|
Loading…
Reference in New Issue
Block a user