mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-10-20 05:22:05 +00:00
Remove silly types on Temperature/Pressure getters.
This commit is contained in:
@@ -67,11 +67,11 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t kilopascal() const {
|
int kilopascal() const {
|
||||||
return kpa_;
|
return kpa_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t psi() const {
|
int psi() const {
|
||||||
return static_cast<int32_t>(kpa_) * 1000 / 6895;
|
return static_cast<int32_t>(kpa_) * 1000 / 6895;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -92,11 +92,11 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t celsius() const {
|
int celsius() const {
|
||||||
return c_;
|
return c_;
|
||||||
}
|
}
|
||||||
|
|
||||||
int16_t fahrenheit() const {
|
int fahrenheit() const {
|
||||||
return (c_ * 9 / 5) + 32;
|
return (c_ * 9 / 5) + 32;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user