Skip to content

Commit a0f4dc9

Browse files
committed
Never return unknown as it breaks the UI
1 parent 82a6732 commit a0f4dc9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/limit.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ const char *LimitType::toString()
4545
LimitType::Energy == _value ? "energy" :
4646
LimitType::Soc == _value ? "soc" :
4747
LimitType::Range == _value ? "range" :
48-
"unknown";
48+
"none";
4949
}
5050

5151
LimitType LimitType::operator= (const Value val) {
@@ -69,7 +69,7 @@ LimitProperties::~LimitProperties()
6969
{
7070
};
7171

72-
void LimitProperties::init()
72+
void LimitProperties::init()
7373
{
7474
_type = LimitType::None;
7575
_value = 0;
@@ -279,7 +279,7 @@ bool Limit::set(LimitProperties props) {
279279
return true;
280280
};
281281

282-
LimitProperties Limit::get() {
282+
LimitProperties Limit::get() {
283283
return _limit_properties;
284284
};
285285

@@ -306,4 +306,4 @@ void Limit::onSessionComplete(MicroTasks::EventListener *listner) {
306306
clear();
307307
}
308308
}
309-
309+

0 commit comments

Comments
 (0)