From 06b101f1daa0091b2cb2075ef67e9aaa48d3d7d5 Mon Sep 17 00:00:00 2001 From: Alexander Entinger Date: Fri, 2 Oct 2020 07:45:45 +0200 Subject: [PATCH] Updating README to reflect changed API. --- README.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index 1b87e2b8..3d49b7e7 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ This library works for ```C++ #include /* ... */ -ArduinoUAVCAN uavcan(13, micros, nullptr); +ArduinoUAVCAN uavcan(13, nullptr); /* ... */ void setup() { /* ... */ @@ -44,7 +44,7 @@ void onHeatbeat_1_0_Received(CanardTransfer const & transfer, ArduinoUAVCAN & /* ```C++ #include /* ... */ -ArduinoUAVCAN uavcan(13, micros, transmitCanFrame); +ArduinoUAVCAN uavcan(13, transmitCanFrame); Heartbeat_1_0 hb; /* ... */ void loop() { @@ -73,7 +73,7 @@ bool transmitCanFrame(uint32_t const id, uint8_t const * data, uint8_t const len ```C++ #include /* ... */ -ArduinoUAVCAN uavcan(13, micros, transmitCanFrame); +ArduinoUAVCAN uavcan(13, transmitCanFrame); /* ... */ void setup() { /* ... */ @@ -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) { /* ... */ } ``` @@ -111,7 +111,7 @@ bool transmitCanFrame(uint32_t const id, uint8_t const * data, uint8_t const len ```C++ #include /* ... */ -ArduinoUAVCAN uavcan(13, micros, transmitCanFrame); +ArduinoUAVCAN uavcan(13, transmitCanFrame); /* ... */ void setup() { /* ... */ @@ -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) { /* ... */ } ```