Skip to content

Commit ba86aef

Browse files
committed
Restore full public access to "id", even if that enables some foot-shooting.
1 parent 437020e commit ba86aef

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

api/CanMsg.h

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,9 +114,9 @@ class CanMsg : public Printable
114114
* |- Bit 29 : reserved (future error frame flag)
115115
* |- Bit 0-28 : CAN identifier (11/29 bit)
116116
*/
117-
private: uint32_t id;
118-
public: uint8_t data_length;
119-
public: uint8_t data[MAX_DATA_LENGTH];
117+
uint32_t id;
118+
uint8_t data_length;
119+
uint8_t data[MAX_DATA_LENGTH];
120120
};
121121

122122
/**************************************************************************************

0 commit comments

Comments
 (0)