[STYLE]: (pointer argument define)

This commit is contained in:
but0n 2016-12-13 17:49:00 +08:00
parent abae9084a5
commit d896ce8760

View File

@ -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);