Просмотр исходного кода

t-beam supreme: debug move

Moved scanDevices into ifdef MESH_DEBUG since it only needs to run under debug sequence
cod3doomy 1 год назад
Родитель
Сommit
a79e9a79e0
1 измененных файлов с 1 добавлено и 3 удалено
  1. 1 3
      variants/lilygo_tbeam_supreme_SX1262/target.cpp

+ 1 - 3
variants/lilygo_tbeam_supreme_SX1262/target.cpp

@@ -28,8 +28,8 @@ static void setPMUIntFlag(){
   pmuIntFlag = true;
 }
 
+#ifdef MESH_DEBUG
 uint32_t deviceOnline = 0x00;
-
 void scanDevices(TwoWire *w)
 {
     uint8_t err, addr;
@@ -89,8 +89,6 @@ void scanDevices(TwoWire *w)
     Serial.println("Scan for devices is complete.");
     Serial.println("\n");
 }
-
-#ifdef MESH_DEBUG
 void TBeamS3SupremeBoard::printPMU()
 {
     Serial.print("isCharging:"); Serial.println(PMU.isCharging() ? "YES" : "NO");