test periodicEvent

This commit is contained in:
Roy
2020-11-19 16:00:51 +08:00
parent 0e9f40bdd5
commit bbf60ebfed
2 changed files with 6 additions and 1 deletions
@@ -1315,7 +1315,11 @@ static void update_ZM_instruction(uint8 *ins) {
for(int i=0 ; i<12 ; i++){
FlushNotify();
}
PeriodicEvent = true;
if(INSTRUCTION.eliteFxn == PULSE_MODE){
PeriodicEvent = false;
} else {
PeriodicEvent = true;
}
InitEliteFlag();
break;
}
@@ -639,6 +639,7 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) {
// trig = PIN_getInputValue(MEGA_TRIG); // trigger: 1 -> 0
if (Mega_PeriodicEvent) {
Mega_PeriodicEvent = false;
PeriodicEvent = true;
PIN15_setOutputValue(MEGA_R_LED, 0); // for functional test
PIN15_setOutputValue(MEGA_G_LED, 1);
}