little fix

This commit is contained in:
eddyem
2016-12-29 16:12:14 +03:00
parent edcc1fd563
commit ce21cb7e10
43 changed files with 80 additions and 77 deletions

View File

@@ -54,9 +54,9 @@ int main(){
while(1){
usbd_poll(usbd_dev);
if(usbdatalen){ // there's something in USB buffer
usbdatalen = parce_incoming_buf(usbdatabuf, usbdatalen);
usbdatalen = parse_incoming_buf(usbdatabuf, usbdatalen);
}
//check_and_parce_UART(USART1); // also check data in UART buffers
//check_and_parse_UART(USART1); // also check data in UART buffers
check_btns();
if(Timer - Old_timer > 999){ // one-second cycle
Old_timer += 1000;

View File

@@ -61,10 +61,10 @@ uint8_t show_int(int32_t v){
}
/**
* parce command buffer buf with length len
* parse command buffer buf with length len
* return 0 if buffer processed or len if there's not enough data in buffer
*/
int parce_incoming_buf(char *buf, int len){
int parse_incoming_buf(char *buf, int len){
uint8_t command;
//uint32_t utmp;
int i = 0;

View File

@@ -45,7 +45,7 @@ void prnt(uint8_t *wrd);
void print_int(int32_t N);
void print_hex(uint8_t *buff, uint8_t l);
int parce_incoming_buf(char *buf, int len);
int parse_incoming_buf(char *buf, int len);
void OW_printID(uint8_t N);
#endif // __USER_PROTO_H__