mirror of
https://github.com/eried/portapack-mayhem.git
synced 2024-10-01 01:26:06 -04:00
Remove silly types on Temperature/Pressure getters.
This commit is contained in:
parent
45ae222ab5
commit
45a8759d7b
@ -67,11 +67,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
int16_t kilopascal() const {
|
||||
int kilopascal() const {
|
||||
return kpa_;
|
||||
}
|
||||
|
||||
int16_t psi() const {
|
||||
int psi() const {
|
||||
return static_cast<int32_t>(kpa_) * 1000 / 6895;
|
||||
}
|
||||
|
||||
@ -92,11 +92,11 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
int16_t celsius() const {
|
||||
int celsius() const {
|
||||
return c_;
|
||||
}
|
||||
|
||||
int16_t fahrenheit() const {
|
||||
int fahrenheit() const {
|
||||
return (c_ * 9 / 5) + 32;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user