test periodicEvent
This commit is contained in:
+5
-1
@@ -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;
|
||||
}
|
||||
|
||||
+1
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user