added const to help remind us of which value is a boolean

This commit is contained in:
proddy
2020-07-21 14:34:08 +02:00
parent 271971d6b6
commit 5f28d75541
2 changed files with 3 additions and 2 deletions

View File

@@ -329,7 +329,7 @@ bool Helpers::check_abs(const int32_t i) {
return ((i < 0 ? -i : i) != 0xFFFFFF);
}
// for booleans, use isBool true
// for booleans, use isBool true (VALUE_BOOL)
bool Helpers::hasValue(const uint8_t v, bool isBool) {
if (isBool) {
return (v != EMS_VALUE_BOOL_NOTSET);