       timeWeHaveSlept = 0;
       return true;
     }
-    return false;
-  }
+  }
+  return false;
 }
 
 /**

          signalFromWifiModule = false;
          timeWeHaveSlept = 0; // Reset this in case sleep was prematurely halted by an interrupt
        }
      }
      break;
    case PREPARE_SHUTDOWN:
      {
        currentState = SLEEP_WIFI_OFF; // TO-DO: Implement some logic here to prevent shutdown
        digitalWrite(WIFI_MODULE_PIN, LOW); // Turn WiFi module off
        break;
      }
    default:


const unsigned long WIFI_OFF_SLEEP_DURATION = 16000UL; // TO-DO: Change this to something larger
const unsigned long WIFI_ON_SLEEP_DURATION = 16000UL; // TO-DO: Change this to something larger
const unsigned long WIFI_PREPARE_SHUTDOWN_DURATION = 10000UL;

volatile bool signalFromWifiModule = false; // Flag to determine if WiFi module has signaled us

