Skip to content

Commit

Permalink
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
  • Loading branch information
eringerli authored and mysterywolf committed Jun 9, 2023
1 parent 82132c6 commit 944db54
Show file tree
Hide file tree
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
Expand Up @@ -33,7 +33,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;
Expand Down Expand Up @@ -65,7 +64,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;
}
Expand Down Expand Up @@ -110,7 +108,6 @@ bool Adafruit_SPIDevice::begin(void) {
}
}

_begun = true;
return true;
}

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

#endif /* RTDUINO_USING_SPI */
Expand Down

0 comments on commit 944db54

Please sign in to comment.