#include "power.h"

void initializePower() {
}

void updatePower() {
}

void enterLowPowerMode() {
}

#include "power.h"

#define SLEEP_MODE_ENABLE_BIT 4

void initializePower() {
}

void updatePower() {
}

void enterLowPowerMode() {
    // When WAIT instruction is executed, go into SLEEP mode
    OSCCONSET = (1 << SLEEP_MODE_ENABLE_BIT);
    asm("wait");
    // TODO if we wake up, do we resume with the PC right here? there's an RCON
    // register with bits to indicate if we woke up from sleep. we'll need to
    // re-run setup, potentially.
    //C1CONSET / C1CONbits.x
}

--- 
+++ 
@@ -1,6 +1,4 @@
 #include "power.h"
-
-#define SLEEP_MODE_ENABLE_BIT 4
 
 void initializePower() {
 }
@@ -9,11 +7,4 @@
 }
 
 void enterLowPowerMode() {
-    // When WAIT instruction is executed, go into SLEEP mode
-    OSCCONSET = (1 << SLEEP_MODE_ENABLE_BIT);
-    asm("wait");
-    // TODO if we wake up, do we resume with the PC right here? there's an RCON
-    // register with bits to indicate if we woke up from sleep. we'll need to
-    // re-run setup, potentially.
-    //C1CONSET / C1CONbits.x
 }
Remove "in progress" sleep mode code for PIC32 for now.
