]> rtime.felk.cvut.cz Git - mirosot.git/blobdiff - bluetooth/bth_error.c
Comments translated to english
[mirosot.git] / bluetooth / bth_error.c
index 99dfb25fcfd87aca3817026212e4f00bebfee0e4..c19fb2e9726c97b643d5aae56944092b19ebd878 100644 (file)
@@ -14,7 +14,7 @@
 \r
 \r
 /**\r
- * chyby generovane bth zarizenim\r
+ * Errors generated by a bluetooth device\r
 */\r
 \r
 static struct {\r
@@ -48,7 +48,7 @@ static struct {
 };\r
 \r
 /**\r
-* vypis chyby na terminal pres RS232\r
+* Output an error to a terminal unsing rs232\r
 */\r
 void bth_error_detect_status(uint8_t status_num)\r
 {\r
@@ -60,7 +60,7 @@ void bth_error_detect_status(uint8_t status_num)
     while(*(message+i)!=0)\r
     {\r
       #ifdef BTH_LX\r
-      sci_rs232_sendch(*(message+i),sci_rs232_chan_default); //do PC\r
+      sci_rs232_sendch(*(message+i),sci_rs232_chan_default); //to PC\r
       #endif\r
       i++;\r
     };\r
@@ -69,22 +69,22 @@ void bth_error_detect_status(uint8_t status_num)
 };\r
 \r
 /**\r
- * chyby programu - nutno upravit navratove parametry - sedi jenom 0 a 3\r
+ * errors in program - it is necessary to modify return parameters - matches only 0 and 3\r
 */\r
 static struct {\r
        uint8_t error_code;\r
        char *error_doc;\r
  }event_command[] = {\r
    { 0x00,   "Status OK"                                },\r
-   { 0x01,   "nespecifikovana chyba"                    },\r
-   { 0x02,   "potvrzovaci fronta prazdna"               },\r
-   { 0x03,   "fce nenapsana"               },\r
+   { 0x01,   "unspecified error"                        },\r
+   { 0x02,   "confirmation queue is empty"              },\r
+   { 0x03,   "function is not implemented"              },\r
    };\r
 \r
 \r
 \r
    /**\r
-    * vypis chyby na terminal pres RS232\r
+    * Output an error to terminal through RS232\r
  */\r
    void bth_error_detect_event(uint8_t status_num)\r
 {\r