Skip to content

Commit 84b7cc9

Browse files
committed
Fix compile errors for the Arduino Nano 33 BLE
1 parent c5bb605 commit 84b7cc9

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

library.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=OpenMV Arduino RPC
2-
version=1.0.2
2+
version=1.0.3
33
author=OpenMV
44
maintainer=OpenMV
55
sentence=OpenMV Arduino RPC Interface Library

src/openmvrpc.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -677,7 +677,7 @@ bool rpc_slave::loop(unsigned long recv_timeout, unsigned long send_timeout)
677677
return false;
678678
}
679679

680-
#ifndef ARDUINO_ARCH_ESP8266
680+
#if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_NRF52840)
681681
void rpc_can_master::_flush()
682682
{
683683
for (int i = 0, ii = CAN.parsePacket(); i < ii; i++) CAN.read();

src/openmvrpc.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
#define __OPENMVRPC__
99

1010
#include <Arduino.h>
11-
#ifndef ARDUINO_ARCH_ESP8266
11+
#if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_NRF52840)
1212
#include <CAN.h>
1313
#endif
1414
#ifdef ARDUINO_ARCH_AVR
@@ -217,7 +217,7 @@ class rpc_slave : public rpc
217217
bool __register_callback(uint32_t hash, rpc_callback_type_t type, void *value);
218218
};
219219

220-
#ifndef ARDUINO_ARCH_ESP8266
220+
#if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_NRF52840)
221221
class rpc_can_master : public rpc_master
222222
{
223223
public:

0 commit comments

Comments
 (0)