mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-05-05 08:15:11 -04:00
Remove silly types on Temperature/Pressure getters.
This commit is contained in:
parent
45ae222ab5
commit
45a8759d7b
1 changed files with 4 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue