Skip to content

Commit

Permalink
Minor fix on output of atlas control sensor command
Browse files Browse the repository at this point in the history
  • Loading branch information
oscgonfer committed Nov 25, 2024
1 parent 4c8f1bb commit 3b38bb0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sam/src/SckAux.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,12 @@ String AuxBoards::control(SensorType wichSensor, String command)

return String F("Atlas temperature compensation: ") + String(thisAtlas->enableTComp ? "on" : "off");
} else {
return F("Wrong command!!\r\nOptions:\r\ntcomp [on/off] # Enables temperature compensation\r\ncom [atlas commands]");

if (wichSensor == SENSOR_ATLAS_TEMPERATURE || wichSensor == SENSOR_ATLAS_ORP) {
return F("No command received.\r\nOptions:\r\ncom [atlas commands]");
} else {
return F("No command received.\r\nOptions:\r\ntcomp [on/off] # Enables temperature compensation\r\ncom [atlas commands]");
}
}
break;

Expand Down

0 comments on commit 3b38bb0

Please sign in to comment.