Skip to content

Commit 488eff6

Browse files
committed
#if defined(ARDUINO_ARCH_RP2040)
1 parent ff1108c commit 488eff6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/current/rp2350/RP2350PIOCurrentSense.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#include "RP2350PIOCurrentSense.h"
2-
2+
#if defined(ARDUINO_ARCH_RP2040)
33
RP2350PIOCurrentSense::RP2350PIOCurrentSense(PIO pio, float gain, uint32_t max_adc_value, int pinSCK, int pinCSB, int pinD0, int pinTRIG) : CurrentSense() {
44
this->pio = pio;
55
this->pinSCK = pinSCK;
@@ -155,6 +155,6 @@
155155

156156
return current;
157157
};
158-
158+
#endif
159159

160160

src/current/rp2350/RP2350PIOCurrentSense.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
#pragma once
3-
3+
#if defined(ARDUINO_ARCH_RP2040)
44
#include "common/base_classes/CurrentSense.h"
55
#include "bu79100g_parallel3.pio.h"
66
#include "hardware/dma.h"
@@ -39,3 +39,4 @@ class RP2350PIOCurrentSense: public CurrentSense {
3939

4040
protected: //For debug, all public
4141
};
42+
#endif

0 commit comments

Comments
 (0)