     // when we underflow [secs - n] we want to wrap around to [59]
     i = secs - x - 1;
     if (i<0) {
+      i += 60;
+    }
+    // If hour_ is set read from the minutes section of timearr (display the last hour)
+    if (hour_) {
+      i = mins - x - 1;
+      if (i<0) {
+        i += 60;
+      }
       i += 60;
     }
     y = 24 * (timearr[i] - graphMin) / (graphMax - graphMin);

  // Print the current voltage followed by the "V" symbol ("/" in this font)
  uView.clear(PAGE);
  uView.setCursor(0,0);
  if (volts < 10)
    uView.print(volts,3);
  else if (volts < 100)
    uView.print(volts,2);
  uView.print("/");
}

void printGraph() {
  int y;
  int i;
  for (int x=0; x<60; x++) {

  volts *= 0.0153432;

  printVolts(volts);
  if (secs < 30)
    printGraph(false);
  else
    printGraph(true);

  uView.display();  
  // wait till 1 second has passed
