Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
B
brew
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
João Lino
brew
Commits
2f48bc72
Commit
2f48bc72
authored
Jun 23, 2017
by
João Lino
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
forced measured temperature to be above 0
parent
65ccbff5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Temperature.cpp
Temperature.cpp
+3
-3
Temperature.h
Temperature.h
+1
-1
No files found.
Temperature.cpp
View file @
2f48bc72
...
@@ -177,7 +177,7 @@ float Temperature::GetMode(float new_array[]) {
...
@@ -177,7 +177,7 @@ float Temperature::GetMode(float new_array[]) {
}
}
float
Temperature
::
getCurrentTemperature
()
{
float
Temperature
::
getCurrentTemperature
()
{
return
_measuredTemperature
;
// - 4.41;
return
_measuredTemperature
>
0.0
?
_measuredTemperature
:
0.0
;
// - 4.41;
}
}
float
Temperature
::
setPumpStatus
(
bool
pump
)
{
float
Temperature
::
setPumpStatus
(
bool
pump
)
{
...
...
Temperature.h
View file @
2f48bc72
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include "Arduino.h"
#include "Arduino.h"
#define DEBUG
//
#define DEBUG
#define CONSTANT_ADC_STEP_COUNT 1024.0
#define CONSTANT_ADC_STEP_COUNT 1024.0
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment