make all possible functions const
This commit is contained in:
@@ -36,7 +36,7 @@ void Counter::clear() {
|
||||
pcnt_counter_clear(this->unit);
|
||||
}
|
||||
|
||||
int16_t Counter::getValue() {
|
||||
int16_t Counter::getValue() const {
|
||||
int16_t res;
|
||||
pcnt_get_counter_value(this->unit, &res);
|
||||
return res;
|
||||
|
||||
Reference in New Issue
Block a user