     case 1: return 10;
     case 2: return 100;
     case 3: return 1000;
+    default: assert(false);
   }
 }
 

  valueToDisplay = temperatureInF;

  unsigned long now = millis();
  if (now > lastIncrement + 100)
  {
    sensor.update();
    lastIncrement = now;
  }

  digitalWrite(ledPin, (now % 200 == 0) ? HIGH : LOW);

  writeValue(0, valueToDisplay, false);
}

void loop()
{
  float place = calculatePlace(3 - segmentIndex, decimals);
