Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove _begun which isn't needed
Browse files Browse the repository at this point in the history
it is only set, never read
related: adafruit#98
eringerli authored and mysterywolf committed Jun 8, 2023
1 parent 10b27f0 commit 64b2fab
Showing 2 changed files with 0 additions and 4 deletions.
3 changes: 0 additions & 3 deletions Adafruit_SPIDevice.cpp
Original file line number Diff line number Diff line change
@@ -29,7 +29,6 @@ Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t cspin, uint32_t freq,
_cs = cspin;
_sck = _mosi = _miso = -1;
_spi = theSPI;
_begun = false;
_spiSetting = new SPISettings(freq, dataOrder, dataMode);
_freq = freq;
_dataOrder = dataOrder;
@@ -61,7 +60,6 @@ Adafruit_SPIDevice::Adafruit_SPIDevice(int8_t cspin, int8_t sckpin,
_freq = freq;
_dataOrder = dataOrder;
_dataMode = dataMode;
_begun = false;
_spiSetting = new SPISettings(freq, dataOrder, dataMode);
_spi = NULL;
}
@@ -106,7 +104,6 @@ bool Adafruit_SPIDevice::begin(void) {
}
}

_begun = true;
return true;
}

1 change: 0 additions & 1 deletion Adafruit_SPIDevice.h
Original file line number Diff line number Diff line change
@@ -59,7 +59,6 @@ class Adafruit_SPIDevice {
uint8_t _dataMode;
void setChipSelect(int value);
int8_t _cs, _sck, _mosi, _miso;
bool _begun;
};

#endif /* RTDUINO_USING_SPI */

0 comments on commit 64b2fab

Please sign in to comment.