Skip to content

Commit

Permalink
Update factory
Browse files Browse the repository at this point in the history
  • Loading branch information
lewisxhe committed Dec 27, 2024
1 parent 3e796be commit ea2bb36
Showing 1 changed file with 4 additions and 22 deletions.
26 changes: 4 additions & 22 deletions examples/Factory/Factory.ino
Original file line number Diff line number Diff line change
Expand Up @@ -350,12 +350,6 @@ void handleMenu()
case 0:
break;
case 1:
#ifdef RADIO_LDO_EN
/*
* 2W LoRa LAN and PA Control ,Set high start power supply
* */
digitalWrite(RADIO_LDO_EN, HIGH);
#endif
#ifdef RADIO_CTRL
/*
* 2W LoRa LAN Control ,set Low turn off LAN , TX Mode
Expand All @@ -372,13 +366,6 @@ void handleMenu()
break;

case 2:
#ifdef RADIO_LDO_EN
/*
* 2W LoRa LAN and PA Control ,Set high start power supply
* */
digitalWrite(RADIO_LDO_EN, HIGH);
#endif

Serial.println("Start receive");
transmissionDirection = RECEIVE;
transmissionState = radio.startReceive();
Expand All @@ -388,12 +375,6 @@ void handleMenu()
break;
default:

#ifdef RADIO_LDO_EN
/*
* 2W LoRa LAN and PA Control ,Set low stop power supply
* */
digitalWrite(RADIO_LDO_EN, LOW);
#endif

#ifdef RADIO_CTRL
/*
Expand Down Expand Up @@ -979,13 +960,13 @@ void hwProbe(OLEDDisplay *display, OLEDDisplayUiState *state, int16_t x, int16_t
display->setTextAlignment(TEXT_ALIGN_LEFT);
display->drawString(62 + x, 16 + y, "OLED");
display->drawString(62 + x, 32 + y, "PSRAM");
#if HAS_SDCARD
#ifdef HAS_SDCARD
display->drawString(62 + x, 48 + y, "SDCARD");
#endif
display->setTextAlignment(TEXT_ALIGN_RIGHT);
display->drawString(display->width() + x, 16 + y, (deviceOnline & DISPLAY_ONLINE ) ? "+" : "-");
display->drawString(display->width() + x, 32 + y, (deviceOnline & PSRAM_ONLINE ) ? "+" : "-");
#if HAS_SDCARD
#ifdef HAS_SDCARD
display->drawString(display->width() + x, 48 + y, (deviceOnline & SDCARD_ONLINE ) ? "+" : "-");
#endif
#endif
Expand Down Expand Up @@ -1281,7 +1262,8 @@ void wifiTask(void *task)
while (1) {
wifiMulti.run();
if (is_time_available) {
vTaskDelete(NULL);
Serial.println("---REMOVE TASK---");
vTaskDelete(NULL);
}
delay(1000);
}
Expand Down

0 comments on commit ea2bb36

Please sign in to comment.