Skip to content

Commit

Permalink
Remove warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nimaltd authored May 12, 2021
1 parent 8600c9f commit 7e63385
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion atc.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ void atc_free(void *ptr)
#endif
}
//####################################################################################################
void atc_init(atc_t *atc, const char *name, USART_TypeDef *USARTx, void *found)
void atc_init(atc_t *atc, const char *name, USART_TypeDef *USARTx, void (*found)(char*))
{
if (atc->inited == true)
return;
Expand Down
5 changes: 3 additions & 2 deletions atc.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@
*/

/*
* Version: 3.0.2
* Version: 3.0.3
*
* History:
*
* (3.0.3): Remove warning.
* (3.0.2): Clear answer buffer before use.
* (3.0.1): Change some defines.
* (3.0.0): Rewrite again. Support NONE-RTOS, RTOS V1 and RTOS V2.
Expand Down Expand Up @@ -60,7 +61,7 @@ typedef struct
* USARTx: selected USART
* found: atc found function. auto called after found strings you added before. do not use atc_command function into this
*/
void atc_init(atc_t *atc, const char *name, USART_TypeDef *USARTx, void *found);
void atc_init(atc_t *atc, const char *name, USART_TypeDef *USARTx, void (*found)(char*));
//###############################################################################################################
/*
* put in usart rx interrupt
Expand Down

0 comments on commit 7e63385

Please sign in to comment.