Skip to content

Commit

Permalink
Fix compile errors for the Arduino Nano 33 BLE
Browse files Browse the repository at this point in the history
  • Loading branch information
kwagyeman committed Oct 7, 2020
1 parent c5bb605 commit 84b7cc9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name=OpenMV Arduino RPC
version=1.0.2
version=1.0.3
author=OpenMV
maintainer=OpenMV
sentence=OpenMV Arduino RPC Interface Library
Expand Down
2 changes: 1 addition & 1 deletion src/openmvrpc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -677,7 +677,7 @@ bool rpc_slave::loop(unsigned long recv_timeout, unsigned long send_timeout)
return false;
}

#ifndef ARDUINO_ARCH_ESP8266
#if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_NRF52840)
void rpc_can_master::_flush()
{
for (int i = 0, ii = CAN.parsePacket(); i < ii; i++) CAN.read();
Expand Down
4 changes: 2 additions & 2 deletions src/openmvrpc.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#define __OPENMVRPC__

#include <Arduino.h>
#ifndef ARDUINO_ARCH_ESP8266
#if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_NRF52840)
#include <CAN.h>
#endif
#ifdef ARDUINO_ARCH_AVR
Expand Down Expand Up @@ -217,7 +217,7 @@ class rpc_slave : public rpc
bool __register_callback(uint32_t hash, rpc_callback_type_t type, void *value);
};

#ifndef ARDUINO_ARCH_ESP8266
#if !defined(ARDUINO_ARCH_ESP8266) && !defined(ARDUINO_ARCH_NRF52840)
class rpc_can_master : public rpc_master
{
public:
Expand Down

0 comments on commit 84b7cc9

Please sign in to comment.