remove channel param from cmd
All checks were successful
EIVE/eive-obsw/pipeline/pr-develop This commit looks good

This commit is contained in:
2022-10-13 18:11:05 +02:00
parent 0e8a085f97
commit a4bf47499e
3 changed files with 2 additions and 17 deletions

View File

@ -29,25 +29,15 @@ class ManualDeploymentCommand : public SerialLinkedListAdapter<SerializeIF> {
void setLinks() {
setStart(&burnTime);
burnTime.setNext(&channel);
burnTime.setNext(&dryRun);
}
uint32_t getBurnTime() const { return burnTime.entry; }
ReturnValue_t getChannel(DeploymentChannels& channel_) const {
if (channel.entry == 1 or channel.entry == 2) {
channel_ = static_cast<DeploymentChannels>(channel.entry);
return returnvalue::OK;
}
return HasActionsIF::INVALID_PARAMETERS;
}
bool isDryRun() const { return dryRun.entry; }
private:
SerializeElement<uint32_t> burnTime;
// Deployment channel SA1 or SA2
SerializeElement<uint8_t> channel;
SerializeElement<uint8_t> dryRun;
};