Skip to content

Commit

Permalink
Missing enum prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
NilsMinor authored Jul 26, 2022
1 parent 4aae710 commit b7d3c25
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,12 @@ void loop() {
tmp.update();

if (alert_flag) {
if (tmp.getAlertType () == HIGHALERT) {
if (tmp.getAlertType () == TMP117_ALERT::HIGHALERT) {
Serial.print("High Temperature allert : ");
Serial.print (tmp.getTemperature());
Serial.println (" °C");
}
else if (tmp.getAlertType () == LOWALERT) {
else if (tmp.getAlertType () == TMP117_ALERT::LOWALERT) {
Serial.print("Low Temperature allert : ");
Serial.print (tmp.getTemperature());
Serial.println (" °C");
Expand Down

0 comments on commit b7d3c25

Please sign in to comment.