@@ -869,7 +869,7 @@ void vTaskRaceDB( void *pvParameters )
869869 /* The parameter value is expected to be 2 as 2 is passed in the
870870 pvParameters value in the call to xTaskCreate() below.
871871 */
872- configASSERT ( ( ( uint32_t ) pvParameters ) == 2 );
872+ // configASSERT( ( ( uint32_t ) pvParameters ) == 2 );
873873
874874 // Add all Participants in race to race page
875875 for (int handleDB=0 ; handleDB<ITAG_COUNT ; handleDB++)
@@ -1006,8 +1006,8 @@ void vTaskRaceDB( void *pvParameters )
10061006 }
10071007 case MSG_ITAG_UPDATE_USER :
10081008 {
1009- // ESP_LOGI(TAG,"Received: MSG_ITAG_UPDATE_USER MSG:0x%x handleDB:0x%08x handleGFX:0x%08x inRace:%d ? myinRace :%d",
1010- // msg.UpdateParticipantRaceStatus.header.msgType, msg.UpdateParticipantRaceStatus.handleDB, msg.UpdateParticipantRaceStatus.handleGFX, msg.UpdateParticipantRaceStatus.inRace,iTags[handleDB].participant.getInRace() );
1009+ ESP_LOGI (TAG ," Received: MSG_ITAG_UPDATE_USER MSG:0x%x handleDB:0x%08x handleGFX:0x%08x inRace:%d" ,
1010+ msg.UpdateParticipantRaceStatus .header .msgType , msg.UpdateParticipantRaceStatus .handleDB , msg.UpdateParticipantRaceStatus .handleGFX , msg.UpdateParticipantRaceStatus .inRace );
10111011
10121012 uint32_t handleDB = msg.UpdateParticipant .handleDB ;
10131013 iTags[handleDB].participant .setHandleGFX (msg.UpdateParticipant .handleGFX , true );
@@ -1156,15 +1156,14 @@ void initRaceDB()
11561156{
11571157 // Start iTag Task
11581158 BaseType_t xReturned;
1159- TaskHandle_t xHandle = NULL ;
11601159 /* Create the task, storing the handle. */
11611160 xReturned = xTaskCreate (
11621161 vTaskRaceDB, /* Function that implements the task. */
11631162 " RaceDB" , /* Text name for the task. */
1164- 4096 , /* Stack size in words, not bytes. */
1165- ( void * ) 2 , /* Parameter passed into the task. */
1166- 5 , /* Priority 0-(configMAX_PRIORITIES-1) idle = 0 = tskIDLE_PRIORITY*/
1167- &xHandle ); /* Used to pass out the created task's handle. */
1163+ TASK_RACEDB_STACK , /* Stack size in words, not bytes. */
1164+ NULL , /* Parameter passed into the task. */
1165+ TASK_RACEDB_PRIO , /* Priority 0-(configMAX_PRIORITIES-1) idle = 0 = tskIDLE_PRIORITY*/
1166+ &xHandleRaceDB ); /* Used to pass out the created task's handle. */
11681167
11691168 if ( xReturned != pdPASS )
11701169 {
0 commit comments