Skip to content

Commit

Permalink
Updating README to reflect changed API.
Browse files Browse the repository at this point in the history
  • Loading branch information
aentinger authored Oct 2, 2020
1 parent bd5d3f2 commit 06b101f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ This library works for
```C++
#include <ArduinoUAVCAN.h>
/* ... */
ArduinoUAVCAN uavcan(13, micros, nullptr);
ArduinoUAVCAN uavcan(13, nullptr);
/* ... */
void setup() {
/* ... */
Expand All @@ -44,7 +44,7 @@ void onHeatbeat_1_0_Received(CanardTransfer const & transfer, ArduinoUAVCAN & /*
```C++
#include <ArduinoUAVCAN.h>
/* ... */
ArduinoUAVCAN uavcan(13, micros, transmitCanFrame);
ArduinoUAVCAN uavcan(13, transmitCanFrame);
Heartbeat_1_0 hb;
/* ... */
void loop() {
Expand Down Expand Up @@ -73,7 +73,7 @@ bool transmitCanFrame(uint32_t const id, uint8_t const * data, uint8_t const len
```C++
#include <ArduinoUAVCAN.h>
/* ... */
ArduinoUAVCAN uavcan(13, micros, transmitCanFrame);
ArduinoUAVCAN uavcan(13, transmitCanFrame);
/* ... */
void setup() {
/* ... */
Expand Down Expand Up @@ -101,7 +101,7 @@ void onExecuteCommand_1_0_Response_Received(CanardTransfer const & transfer, Ard
Serial.println("Error when retrieving coffee");
}
/* ... */
bool transmitCanFrame(uint32_t const id, uint8_t const * data, uint8_t const len) {
bool transmitCanFrame(CanardFrame const & frame) {
/* ... */
}
```
Expand All @@ -111,7 +111,7 @@ bool transmitCanFrame(uint32_t const id, uint8_t const * data, uint8_t const len
```C++
#include <ArduinoUAVCAN.h>
/* ... */
ArduinoUAVCAN uavcan(13, micros, transmitCanFrame);
ArduinoUAVCAN uavcan(13, transmitCanFrame);
/* ... */
void setup() {
/* ... */
Expand All @@ -137,7 +137,7 @@ void onExecuteCommand_1_0_Request_Received(CanardTransfer const & transfer, Ardu
}
}
/* ... */
bool transmitCanFrame(uint32_t const id, uint8_t const * data, uint8_t const len) {
bool transmitCanFrame(CanardFrame const & frame) {
/* ... */
}
```
Expand Down

0 comments on commit 06b101f

Please sign in to comment.