@@ -64,7 +64,7 @@ void calibrate() {
6464 uint32_t t = micros ();
6565 burnCPU (1000 );
6666 t = micros () - t;
67- cal = (TICK_USEC* 1000 * cal)/ t;
67+ cal = (TICK_USEC * 1000 * cal) / t;
6868}
6969// ------------------------------------------------------------------------------
7070// print helpers
@@ -85,7 +85,7 @@ void done(const char* msg, task_t* task, TickType_t now) {
8585 Serial.print (" Task: " );
8686 Serial.flush ();
8787 printTask (task);
88- while (1 );
88+ while (1 );
8989}
9090// ------------------------------------------------------------------------------
9191// start tasks at 1000 ticks
@@ -123,7 +123,7 @@ void setup() {
123123 portBASE_TYPE s; // task create status
124124
125125 Serial.begin (9600 );
126- while (!Serial) {}
126+ while (!Serial) {}
127127 Serial.println (" Rate Monotonic Scheduling Examples." );
128128 Serial.println (" Cases 1 and 3 should fail" );
129129 Serial.println (" Cases 2 and 4 should succeed" );
@@ -152,18 +152,18 @@ void setup() {
152152
153153 uint32_t t = micros ();
154154 burnCPU (1000 );
155- Serial.println (micros () -t);
155+ Serial.println (micros () - t);
156156 Serial.println (" Starting tasks - period and CPU in ticks" );
157157 Serial.println (" Period,CPU,Priority" );
158158 Serial.flush ();
159159 for (int i = 0 ; i < n; i++) {
160160 printTask (&tasks[i]);
161- cpuUse += tasks[i].cpu / (float )tasks[i].period ;
161+ cpuUse += tasks[i].cpu / (float )tasks[i].period ;
162162
163163 s = xTaskCreate (task, NULL , 200 , (void *)&tasks[i], tasks[i].priority , NULL );
164164 if (s != pdPASS) {
165165 printf (" task create failed\n " );
166- while (1 );
166+ while (1 );
167167 }
168168 }
169169
@@ -174,7 +174,7 @@ void setup() {
174174 // start tasks
175175 vTaskStartScheduler ();
176176 Serial.println (" Scheduler failed" );
177- while (1 );
177+ while (1 );
178178}
179179// ------------------------------------------------------------------------------
180180// WARNING idle loop has a very small stack (configMINIMAL_STACK_SIZE)
0 commit comments