mirror of
https://github.com/liberatedsystems/RNode_Firmware_CE.git
synced 2025-05-05 07:55:36 -04:00
Fix buffer overrun and freezing bugs
This commit is contained in:
parent
858a35b2f9
commit
f6fe7e2b5f
4 changed files with 9 additions and 11 deletions
|
@ -129,7 +129,7 @@ sx126x::sx126x(uint8_t index, SPIClass* spi, bool tcxo, bool dio2_as_rf_switch,
|
|||
setTimeout(0);
|
||||
// TODO, figure out why this has to be done. Using the index to reference the
|
||||
// interface_obj list causes a crash otherwise
|
||||
_index = getIndex();
|
||||
//_index = getIndex();
|
||||
}
|
||||
|
||||
bool sx126x::preInit() {
|
||||
|
@ -1098,7 +1098,7 @@ sx127x::sx127x(uint8_t index, SPIClass* spi, int ss, int sclk, int mosi, int mis
|
|||
setTimeout(0);
|
||||
// TODO, figure out why this has to be done. Using the index to reference the
|
||||
// interface_obj list causes a crash otherwise
|
||||
_index = getIndex();
|
||||
//_index = getIndex();
|
||||
}
|
||||
|
||||
void sx127x::setSPIFrequency(uint32_t frequency) { _spiSettings = SPISettings(frequency, MSBFIRST, SPI_MODE0); }
|
||||
|
@ -1628,7 +1628,7 @@ sx128x::sx128x(uint8_t index, SPIClass* spi, bool tcxo, int ss, int sclk, int mo
|
|||
setTimeout(0);
|
||||
// TODO, figure out why this has to be done. Using the index to reference the
|
||||
// interface_obj list causes a crash otherwise
|
||||
_index = getIndex();
|
||||
//_index = getIndex();
|
||||
}
|
||||
|
||||
bool sx128x::preInit() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue