Skip to content

Commit

Permalink
Merge pull request #248 from boblemaire/Add-group-all-to-query
Browse files Browse the repository at this point in the history
Add group=all to query
  • Loading branch information
boblemaire committed Dec 7, 2019
2 parents e6cc948 + 9f22a3b commit 03cbdac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Firmware/IotaWatt/CSVquery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,9 @@ bool CSVquery::setup(){
}
_groupMult = interval;
_groupUnits = tUnitsSeconds;
} else if(group.equals("all")){
_groupMult = _end - _begin;
_groupUnits = tUnitsSeconds;
} else {
_groupMult = MAX(1, group.toInt());
if(group.endsWith("s")) _groupUnits = tUnitsSeconds;
Expand Down

0 comments on commit 03cbdac

Please sign in to comment.