diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/impedance_meter.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/impedance_meter.h index a34bf1640..20f091c0b 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/impedance_meter.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/impedance_meter.h @@ -734,7 +734,7 @@ static bool TurnOnElite(uint8_t key){ // press 1 sec, power on LED if(TurnOnCounter >= 15){ PIN_setOutputValue(pin_handle, enable_5v, 1); // enable 5V -// LEDPowerON(); + LEDPowerON(); return true; } else{ diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/simple_peripheral.c b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/simple_peripheral.c index 20faedab9..f6c2c72b8 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/simple_peripheral.c +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/simple_peripheral.c @@ -621,15 +621,23 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) { } else if(counter6994 == 35){ PIN_setOutputValue(pin_handle, shutdown_6994, 0); // OFF = 1 => turn off 6994 +// PIN_setOutputValue(pin_handle, enable_10v, 1); // enable 10V + counter6994 ++; + } + else if ((counter6994 > 35) && (counter6994 < 70)) { +// PIN_setOutputValue(pin_handle, shutdown_6994, 0); // OFF = 1 => turn off 6994 + PIN_setOutputValue(pin_handle, enable_10v, 0); // enable 10V + counter6994 ++; + } + else if(counter6994 == 70){ +// PIN_setOutputValue(pin_handle, shutdown_6994, 0); // OFF = 1 => turn off 6994 +// PIN_setOutputValue(pin_handle, enable_10v, 1); // enable 10V counter6994 ++; } EliteKeyPress(key); } else{ EliteOn = TurnOnElite(key); - CPUdelay(16000); - PIN_setOutputValue(pin_handle, enable_10v, 1); // enable 10V - LEDPowerON(); } }