Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/uart updates fix #53

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions examples/Example_01_TestCompile/Example_01_TestCompile.ino
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

sfTkArdI2C myI2C;
sfTkArdSPI mySPI;
sfTkArdUART myUART;
sfTkArdUARTBus myUARTBus(myUART);
sfTkArdUART<HardwareSerial> myUART;
sfTkArdUARTBus<HardwareSerial> myUARTBus(myUART);

void setup()
{
Expand Down
6 changes: 6 additions & 0 deletions src/sfTk/sfTkIBus.h
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,12 @@ const sfTkError_t ksfTkErrBusUnderRead = ksfTkErrBaseBus + 7;
*/
const sfTkError_t ksfTkErrBusNotEnabled = ksfTkErrBaseBus + 8;

/**
* @brief Returned when the data received is not valid or does not match the expected format.
*
*/
const sfTkError_t ksfTkErrBusBadData = ksfTkErrFail * (ksfTkErrBaseBus + 9);

/**
* @brief Interface that defines the communication bus for the SparkFun Electronics Toolkit.
*
Expand Down
2 changes: 1 addition & 1 deletion src/sfTk/sfTkISerialBus.h
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

const uint8_t ksfTkBusTypeSerialBus = 0x03;

class sfTkISerialBus : sfTkIBus
class sfTkISerialBus : public sfTkIBus
{
public:
/**
Expand Down
Loading
Loading