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