6994 turn on bug?

This commit is contained in:
alan
2019-05-24 11:54:39 +08:00
parent d59346a05e
commit afe3d87d80
2 changed files with 7 additions and 1 deletions
@@ -253,7 +253,7 @@ static void VT_Plot() {
//
}
static void IT_Plot() {
PIN_setOutputValue(pin_handle, shutdown_6994, 0); // OFF = 1 => turn off 6994
}
static void ramp_test(){
@@ -555,6 +555,7 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) {
uint8_t key = 0;
bool EliteOn = 0;
bool Wake6994 = true;
// PIN_setOutputValue(pin_handle, shutdown_6994, 0); // OFF = 1 => turn off 6994
@@ -615,6 +616,11 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) {
Util_startClock(&periodicClock);
key = PIN_getInputValue(switch_on);
if(EliteOn){
if(Wake6994){
CPUdelay(160000);
Wake6994 = false;
PIN_setOutputValue(pin_handle, shutdown_6994, 0); // OFF = 1 => turn off 6994
}
EliteKeyPress(key);
}
else{