Skip to content

Commit

Permalink
Bugfixed: wrong function called to determine time
Browse files Browse the repository at this point in the history
  • Loading branch information
vitotai committed Jan 20, 2024
1 parent 7abb62a commit a316b00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/BrewPiProxy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ bool BrewPiProxy::ambientSensorConnected(void)

uint32_t BrewPiProxy::getStatusTime(void){
uint16_t time = UINT16_MAX; // init to max
uint8_t state = tempControl.getDisplayState();
uint8_t state = tempControl.getState();
uint16_t sinceIdleTime = tempControl.timeSinceIdle();
if(state==IDLE){
time = min(tempControl.timeSinceCooling(), tempControl.timeSinceHeating());
Expand Down

0 comments on commit a316b00

Please sign in to comment.