File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ void atc_free(void *ptr)
2828#endif
2929}
3030//####################################################################################################
31- void atc_init (atc_t * atc , const char * name , USART_TypeDef * USARTx , void * found )
31+ void atc_init (atc_t * atc , const char * name , USART_TypeDef * USARTx , void ( * found )( char * ) )
3232{
3333 if (atc -> inited == true)
3434 return ;
Original file line number Diff line number Diff line change 1010 */
1111
1212/*
13- * Version: 3.0.2
13+ * Version: 3.0.3
1414 *
1515 * History:
1616 *
17+ * (3.0.3): Remove warning.
1718 * (3.0.2): Clear answer buffer before use.
1819 * (3.0.1): Change some defines.
1920 * (3.0.0): Rewrite again. Support NONE-RTOS, RTOS V1 and RTOS V2.
@@ -60,7 +61,7 @@ typedef struct
6061 * USARTx: selected USART
6162 * found: atc found function. auto called after found strings you added before. do not use atc_command function into this
6263 */
63- void atc_init (atc_t * atc , const char * name , USART_TypeDef * USARTx , void * found );
64+ void atc_init (atc_t * atc , const char * name , USART_TypeDef * USARTx , void ( * found )( char * ) );
6465//###############################################################################################################
6566/*
6667 * put in usart rx interrupt
You can’t perform that action at this time.
0 commit comments