RollingGecko / VescUartControl

Arduino library to interface with the VESC bldc over UART.
Other
141 stars 75 forks source link

Warning converting to non-pointer type #17

Open Peemouse opened 6 years ago

Peemouse commented 6 years ago

Hi,

I made a fresh install on another computer than the usual one that don't have any issue while compiling. Arduino IDE 1.8.5 VescUartControl VESC6 branch library (latest version on Github).

Compiler window of Arduino IDE :

xxxxxx\Documents\Arduino\libraries\VescUartControl\VescUart.cpp: In function 'int PackSendPayload(uint8_t*, int, int)':

xxxxxx\Documents\Arduino\libraries\VescUartControl\VescUart.cpp:188:21: warning: converting to non-pointer type 'uint8_t {aka unsigned char}' from NULL [-Wconversion-null]

messageSend[count] = NULL;

                 ^

Sketch uses 11462 bytes (37%) of program storage space. Maximum is 30720 bytes. Global variables use 981 bytes (47%) of dynamic memory, leaving 1067 bytes for local variables. Maximum is 2048 bytes.