Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6c411fe

Browse filesBrowse files
committed
Provide very bare-bones minimal success/error codes for CAN API.
1 parent 4a02bfc commit 6c411fe
Copy full SHA for 6c411fe

File tree

1 file changed

+7
-0
lines changed
Filter options

1 file changed

+7
-0
lines changed

‎api/HardwareCAN.h

Copy file name to clipboardExpand all lines: api/HardwareCAN.h
+7Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@ enum class CanBitRate : int
3939
BR_1000k = 1000000,
4040
};
4141

42+
/**************************************************************************************
43+
* CONSTANTS
44+
**************************************************************************************/
45+
46+
static int constexpr CAN_SUCCESS = 1;
47+
static int constexpr CAN_ERROR_GENERIC = -1;
48+
4249
/**************************************************************************************
4350
* NAMESPACE
4451
**************************************************************************************/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.