Skip to content

Commit e2409bf

Browse files
author
Cruz Monrreal
authored
Merge pull request #7848 from aashishc1988/CanMessengerBug
Message ID in CAN constructor needs to be unsigned
2 parents c12c69f + c07e29b commit e2409bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/CAN.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ class CANMessage : public CAN_Message {
5555
* @param _type Type of Data: Use enum CANType for valid parameter values
5656
* @param _format Data Format: Use enum CANFormat for valid parameter values
5757
*/
58-
CANMessage(int _id, const char *_data, char _len = 8, CANType _type = CANData, CANFormat _format = CANStandard)
58+
CANMessage(unsigned _id, const char *_data, char _len = 8, CANType _type = CANData, CANFormat _format = CANStandard)
5959
{
6060
len = _len & 0xF;
6161
type = _type;
@@ -69,7 +69,7 @@ class CANMessage : public CAN_Message {
6969
* @param _id Message ID
7070
* @param _format Data Format: Use enum CANType for valid parameter values
7171
*/
72-
CANMessage(int _id, CANFormat _format = CANStandard)
72+
CANMessage(unsigned _id, CANFormat _format = CANStandard)
7373
{
7474
len = 0;
7575
type = CANRemote;

0 commit comments

Comments
 (0)