diff --git a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h index 4abcc4207..ceaf81b37 100644 --- a/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h +++ b/simplelink/ble_sdk_2_02_02_25/src/examples/simple_peripheral/cc26xx/app/headstage/headstage.h @@ -721,7 +721,7 @@ static void update_ZM_instruction(uint8 *ins) { DACreset = true; if(!If10Von){ -// TurnOn10V(); + //TurnOn10V(); } switch (ins_type) { @@ -1040,7 +1040,6 @@ static void update_ZM_instruction(uint8 *ins) { case VIS_FUH:{ LED_color(DARKLED, 0x0F, 0x00, 0x0F); - PIN_setOutputValue(pin_handle, enable_10v, 1); break; } 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 73f5e988b..595e27ec6 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 @@ -646,7 +646,7 @@ static void DPVCurve(){ if( counter <= (PulsePeriod - PulseWidth)) outputV = Volt1; else outputV = Volt2; */ - + LED_color(LIGHTLED, 0xff, 0x00, 0x00); DAC_outputV(Volt1); // record the output voltage @@ -663,16 +663,16 @@ static void DPVCurve(){ PeriodicEvent = false; DACreset = true; return; - }*/ + } if(Volt1 >= VoltFinal){ PeriodicEvent = false; DACreset = true; return; - } + }*/ //check overflow/underflow and prepare for next output - LED_color(LIGHTLED, 0xff, 0x00, 0x00); + Volt1 = Volt1 + Amplitude; LED_color(LIGHTLED, 0xff, 0xfa, 0x64); @@ -1029,7 +1029,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 -// TurnOn10V(); + TurnOn10V(); LEDPowerON(); return true; }