Skip to content

Commit 7e63385

Browse files
authored
Remove warning
1 parent 8600c9f commit 7e63385

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

atc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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;

atc.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,11 @@
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

0 commit comments

Comments
 (0)