mirror of
https://github.com/avem-labs/Avem.git
synced 2023-09-01 15:18:49 +08:00
[STYLE]: (pointer argument define)
This commit is contained in:
parent
abae9084a5
commit
d896ce8760
@ -35,12 +35,12 @@ void wifi_sendSingleByte(unsigned char cmd) {
|
||||
while((USART3->SR & 0x40) == 0);
|
||||
}
|
||||
|
||||
void wifi_sendData(char * cmd) {
|
||||
void wifi_sendData(char *cmd) {
|
||||
while(*cmd)
|
||||
wifi_sendSingleByte(*cmd++);
|
||||
}
|
||||
|
||||
void wifi_sendCmd(char * cmd) {
|
||||
void wifi_sendCmd(char *cmd) {
|
||||
wifi_sendData(cmd);
|
||||
wifi_sendSingleByte(0x0D);
|
||||
wifi_sendSingleByte(0x0A);
|
||||
|
Loading…
x
Reference in New Issue
Block a user