feat: add BAR unit support to TPMS RX app (#2988)

- Add bar() conversion method to Pressure class
- Convert pressure units system from boolean to enum (kPa, PSI, BAR)
- Add BAR option to pressure unit selector in UI
- Update settings manager to persist pressure unit preference
- Use ternary operators for compact pressure formatting
This commit is contained in:
Hoite Prins
2026-02-16 14:55:12 +01:00
committed by GitHub
parent 794daf5257
commit 00f40bf171
3 changed files with 22 additions and 8 deletions
+4
View File
@@ -48,6 +48,10 @@ class Pressure {
return kpa_ * 1000 / 6895;
}
int bar() const {
return kpa_ / 100;
}
private:
int16_t kpa_;
};