Commit ff7a7eb Brandon Satrom
authored
File tree 1 file changed +12
-2
lines changed
1 file changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -150,7 +150,7 @@ void loop()
150
150
tft.setTextColor (ILI9341_WHITE);
151
151
152
152
displayFermentationHeading ();
153
- // TODO: print delta btw mode start and fermentation start
153
+ displayFermentationModeDelta ();
154
154
155
155
waitUntil (Particle.connected );
156
156
Particle.publish (" fermentation/state" , " start" );
@@ -418,12 +418,22 @@ void displayStageName(String stagename)
418
418
419
419
void displayFermentationHeading ()
420
420
{
421
- tft.setCursor (0 , 40 );
421
+ tft.setCursor (0 , 100 );
422
422
tft.setTextSize (2 );
423
423
tft.println (" Fermentation Rate" );
424
424
tft.println (" (in seconds)" );
425
425
}
426
426
427
+ void displayFermentationModeDelta ()
428
+ {
429
+ unsigned long fermentationDelta = fermentationStartTime - fermentationModeStartTime;
430
+
431
+ tft.setCursor (0 , 40 );
432
+ tft.setTextSize (2 );
433
+ tft.println (" Time to fermentation (hours)" );
434
+ tft.println (fermentationDelta / 36000000.00 );
435
+ }
436
+
427
437
void displayTimeHeading ()
428
438
{
429
439
tft.setCursor (0 , 120 );
You can’t perform that action at this time.
0 commit comments