Skip to content

Commit 557f516

Browse files
committed
Need to have sfTkIBus as public inheritence. Add another error condition.
1 parent 68749d4 commit 557f516

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/sfTk/sfTkIBus.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,12 @@ const sfTkError_t ksfTkErrBusUnderRead = ksfTkErrBaseBus + 7;
6262
*/
6363
const sfTkError_t ksfTkErrBusNotEnabled = ksfTkErrBaseBus + 8;
6464

65+
/**
66+
* @brief Returned when the data received is not valid or does not match the expected format.
67+
*
68+
*/
69+
const sfTkError_t ksfTkErrBusBadData = ksfTkErrFail * (ksfTkErrBaseBus + 9);
70+
6571
/**
6672
* @brief Interface that defines the communication bus for the SparkFun Electronics Toolkit.
6773
*

src/sfTk/sfTkISerialBus.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
const uint8_t ksfTkBusTypeSerialBus = 0x03;
2323

24-
class sfTkISerialBus : sfTkIBus
24+
class sfTkISerialBus : public sfTkIBus
2525
{
2626
public:
2727
/**

0 commit comments

Comments
 (0)