attempt to construct clock
This commit is contained in:
+3
-2
@@ -339,7 +339,8 @@ static void SimpleBLEPeripheral_init(void) {
|
||||
application_message_queue = Util_constructQueue(&application_message);
|
||||
|
||||
// Util_constructClock(&periodicClock, SimpleBLEPeripheral_clockHandler, SBP_PERIODIC_EVT_PERIOD, 0, true, SBP_PERIODIC_EVT);
|
||||
Util_constructClock(&periodicClock, SimpleBLEPeripheral_clockHandler, 500, 0, true, SBP_PERIODIC_EVT);
|
||||
Util_constructClock(&periodicClock, SimpleBLEPeripheral_clockHandler, 500, 0, false, SBP_PERIODIC_EVT);
|
||||
Util_startClock(&periodicClock);
|
||||
|
||||
// Setup the GAP
|
||||
GAP_SetParamValue(TGAP_CONN_PAUSE_PERIPHERAL, DEFAULT_CONN_PAUSE_PERIPHERAL);
|
||||
@@ -632,7 +633,7 @@ static void SimpleBLEPeripheral_taskFxn(UArg a0, UArg a1) {
|
||||
if (events & SBP_PERIODIC_EVT) {
|
||||
events &= ~SBP_PERIODIC_EVT;
|
||||
|
||||
// Util_startClock(&periodicClock);
|
||||
Util_startClock(&periodicClock);
|
||||
|
||||
// Perform periodic application task
|
||||
SimpleBLEPeripheral_performPeriodicTask();
|
||||
|
||||
Reference in New Issue
Block a user