Răsfoiți Sursa

Fix translate error.

Vladimir N. Shilov 3 ani în urmă
părinte
comite
6d0b825487
1 a modificat fișierele cu 3 adăugiri și 5 ștergeri
  1. 3 5
      src/rtos.c

+ 3 - 5
src/rtos.c

@@ -3,8 +3,7 @@
 /**
  * @brief Task Structure
  */
-typedef struct task
-{
+typedef struct task {
    void (*pFunc) (void);  /**< @brief function pointer */
    uint32_t delay;  /**< @brief delay before the first start of the task */
    uint32_t period; /**< @brief task start period */ 
@@ -12,11 +11,10 @@ typedef struct task
 } task_t;
 
 /*
- * Local ariables
+ * Local variables
  */
 static volatile task_t TaskArray[MAX_TASKS];/**< @brief task queue */
 static volatile int arrayTail;              /**< @brief "tail" of the queue */
-
 static volatile uint32_t TDelay;            /**< @brief delay counter */
 
 /**
@@ -152,7 +150,7 @@ void tdelay_ms(uint32_t msek) {
 
   do {
     if (TDelay > 1) {
-      /* so as not to waste time in vain - turn the dispatcher */
+      /* so as not to waste time in wait - turn the dispatcher */
       RTOS_DispatchTask();
     }
     /* there is nothing to do - sleep, waiting for an interruption */