|
WPILIB: WriteSerialPortOne(unsigned char) Warning on Compile
We are trying to write a new ASCII driver function within EasyC Pro.
I see that WPILIB supports WriteSerialPortOne(unsigned char).
If we add this as a C Code block and call the serial port write function, the code complies but we get a WARNING.
Is this a normal warning to see?
"suspicious pointer conversion"
The supported WPILIB serial functions we are aware of.
unsigned char ReadSerialPortOne(void);
void WriteSerialPortOne(unsigned char);
unsigned char ReadSerialPortTwo(void);
void WriteSerialPortTwo(unsigned char);
unsigned char GetSerialPort2ByteCount(void);
unsigned char GetSerialPort1ByteCount(void);
void OpenSerialPortOne(unsigned baudRate);
void OpenSerialPortTwo(unsigned baudRate);
__________________
Team T.H.R.U.S.T. 1501
Download all of our past robot's source code here: Repository
Favorite CD quote:
"That can't be their 'bot. not nearly enough (if any) rivets to be a 1501 machine." ~RogerR: Team #1369
|