Skip to content

Commit 50f3fa3

Browse files
committed
Remove PortDef member for wire
Needs to be something different eventually.
1 parent be3a217 commit 50f3fa3

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

cpp/arduino/Godmode.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,4 @@ inline std::ostream& operator << ( std::ostream& out, const PinHistory<T>& ph )
104104
SPIClass SPI = SPIClass(&godmode.spi.dataIn, &godmode.spi.dataOut);
105105

106106
// defined in Wire.h
107-
TwoWire Wire = TwoWire(&godmode.wire.dataIn, &godmode.wire.dataOut);
107+
TwoWire Wire = TwoWire();

cpp/arduino/Godmode.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ class GodmodeState {
5252
struct PortDef serialPort[NUM_SERIAL_PORTS];
5353
struct InterruptDef interrupt[MOCK_PINS_COUNT]; // not sure how to get actual number
5454
struct PortDef spi;
55-
struct PortDef wire;
5655

5756
void resetPins() {
5857
for (int i = 0; i < MOCK_PINS_COUNT; ++i) {

cpp/arduino/Wire.h

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@
77
class TwoWire : public ObservableDataStream
88
{
99
public:
10-
TwoWire(String *dataIn, String *dataOut) {
11-
this->dataIn = dataIn;
12-
this->dataOut = dataOut;
10+
TwoWire() {
1311
}
1412

1513
// https://www.arduino.cc/en/Reference/WireBegin
@@ -135,8 +133,6 @@ class TwoWire : public ObservableDataStream
135133
private:
136134
int i2cAddress;
137135
bool isMaster = false;
138-
String *dataIn;
139-
String *dataOut;
140136
};
141137

142138
extern TwoWire Wire;

0 commit comments

Comments
 (0)