Skip to content
Snippets Groups Projects
Commit 25183947 authored by Peter Švihra's avatar Peter Švihra
Browse files

trailing changes of timespans to durations

parent f6098457
Branches
No related merge requests found
......@@ -403,7 +403,7 @@ float BreathingLoop::getCalibrationOffset()
return _calib_avg_pressure;
}
states_durations &BreathingLoop::getTimespans() {
states_durations &BreathingLoop::getDurations() {
return _states_durations;
}
......
......@@ -32,7 +32,7 @@ public:
float getMinuteVolume();
ValvesController * getValvesController();
states_durations &getTimespans();
states_durations &getDurations();
// states
enum BL_STATES : uint8_t {
......
......@@ -16,7 +16,7 @@ int UILoop::doCommand(cmd_format *cf)
case CMD_TYPE::GENERAL:
cmdGeneral(cf);
break;
case CMD_TYPE::SET_TIMESPAN:
case CMD_TYPE::SET_DURATION:
cmdSetDuration(cf);
break;
case CMD_TYPE::SET_MODE:
......@@ -46,7 +46,7 @@ void UILoop::cmdGeneral(cmd_format *cf) {
}
void UILoop::cmdSetDuration(cmd_format *cf) {
setDuration(static_cast<CMD_SET_DURATION>(cf->cmd_code), _breathing_loop->getTimespans(), cf->param);
setDuration(static_cast<CMD_SET_DURATION>(cf->cmd_code), _breathing_loop->getDurations(), cf->param);
}
void UILoop::cmdSetMode(cmd_format *cf) {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment