Skip to content
Snippets Groups Projects
Commit c66ff2b1 authored by Davide Mor's avatar Davide Mor Committed by Davide Mor
Browse files

[sx1278] Fixed a bug where the SPI would not work properly

parent 6da1c42a
No related branches found
No related tags found
No related merge requests found
......@@ -50,6 +50,7 @@ inline SPIBusConfig getSpiBusConfig(SPI::ClockDivider clock_divider)
bus_config.bitOrder = SPI::Order::MSB_FIRST;
bus_config.byteOrder = SPI::Order::MSB_FIRST;
bus_config.writeBit = SPI::WriteBit::INVERTED;
bus_config.csHoldTimeUs = 3;
return bus_config;
}
......
......@@ -225,7 +225,7 @@ bool initRadio()
sx1278 = new Boardcore::SX1278Lora(sx1278_bus, cs::getPin(), dio0::getPin(),
dio1::getPin(), dio3::getPin(),
Boardcore::SPI::ClockDivider::DIV_32,
Boardcore::SPI::ClockDivider::DIV_256,
std::move(frontend));
printf("\n[sx1278] Configuring sx1278 lora...\n");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment