undo: implement set point change undo command

This is a simple copy of the other add-event commands. It could
be made more friendly by stating the pO2 value in the text.

Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
This commit is contained in:
Berthold Stoeger 2020-03-03 23:31:46 +01:00
parent 9a4718b46f
commit 1971cfad54
5 changed files with 19 additions and 8 deletions

View file

@ -339,4 +339,9 @@ void addEventDivemodeSwitch(struct dive *d, int dcNr, int seconds, int divemode)
execute(new AddEventDivemodeSwitch(d, dcNr, seconds, divemode));
}
void addEventSetpointChange(struct dive *d, int dcNr, int seconds, pressure_t pO2)
{
execute(new AddEventSetpointChange(d, dcNr, seconds, pO2));
}
} // namespace Command