Merge pull request #7848 from aashishc1988/CanMessengerBug

Message ID in CAN constructor needs to be unsigned
pull/7903/head
Cruz Monrreal 2018-08-27 10:29:15 -05:00 committed by GitHub
commit e2409bfdfe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ public:
* @param _type Type of Data: Use enum CANType for valid parameter values
* @param _format Data Format: Use enum CANFormat for valid parameter values
*/
CANMessage(int _id, const char *_data, char _len = 8, CANType _type = CANData, CANFormat _format = CANStandard)
CANMessage(unsigned _id, const char *_data, char _len = 8, CANType _type = CANData, CANFormat _format = CANStandard)
{
len = _len & 0xF;
type = _type;
@ -69,7 +69,7 @@ public:
* @param _id Message ID
* @param _format Data Format: Use enum CANType for valid parameter values
*/
CANMessage(int _id, CANFormat _format = CANStandard)
CANMessage(unsigned _id, CANFormat _format = CANStandard)
{
len = 0;
type = CANRemote;