Split native build into a cross-platform target vs a linux only target

This commit is contained in:
Kevin Hester
2021-05-23 17:57:20 +08:00
parent 72d7142751
commit 70b0a73572
10 changed files with 21 additions and 1031 deletions

View File

@@ -59,9 +59,9 @@ void portduinoSetup()
{
printf("Setting up Meshtastic on Porduino...\n");
#ifdef PORTDUINO_LINUX_HARDWARE
SPI.begin(); // We need to create SPI
bool usePineLora = !spiChip->isSimulated();
if(usePineLora) {
printf("Connecting to PineLora board...\n");
@@ -82,7 +82,10 @@ void portduinoSetup()
loraCs->setSilent();
gpioBind(loraCs);
}
else {
else
#endif
{
auto fakeBusy = new SimGPIOPin(SX1262_BUSY, "fakeBusy");
fakeBusy->writePin(LOW);
fakeBusy->setSilent(true);