Cleanup
This commit is contained in:
parent
6189bfe636
commit
a0bf9a34b3
2
Config.h
2
Config.h
@ -201,7 +201,7 @@
|
||||
#define HAS_CONSOLE true
|
||||
#define HAS_PMU true
|
||||
#define HAS_NP true
|
||||
#define HAS_SD true
|
||||
#define HAS_SD false
|
||||
const int pin_cs = 18;
|
||||
const int pin_reset = 23;
|
||||
const int pin_dio = 26;
|
||||
|
46
Console.h
46
Console.h
@ -161,49 +161,3 @@ void console_loop(){
|
||||
// other tasks to run.
|
||||
delay(2);
|
||||
}
|
||||
|
||||
// void listDir(fs::FS &fs, const char * dirname, uint8_t levels){
|
||||
// Serial.printf("Listing directory: %s\r\n", dirname);
|
||||
|
||||
// File root = fs.open(dirname);
|
||||
// if(!root){
|
||||
// Serial.println("- failed to open directory");
|
||||
// return;
|
||||
// }
|
||||
// if(!root.isDirectory()){
|
||||
// Serial.println(" - not a directory");
|
||||
// return;
|
||||
// }
|
||||
|
||||
// File file = root.openNextFile();
|
||||
// while(file){
|
||||
// if(file.isDirectory()){
|
||||
// Serial.print(" DIR : ");
|
||||
// Serial.println(file.name());
|
||||
// if(levels){
|
||||
// listDir(fs, file.path(), levels -1);
|
||||
// }
|
||||
// } else {
|
||||
// Serial.print(" FILE: ");
|
||||
// Serial.print(file.name());
|
||||
// Serial.print("\tSIZE: ");
|
||||
// Serial.println(file.size());
|
||||
// }
|
||||
// file = root.openNextFile();
|
||||
// }
|
||||
// }
|
||||
|
||||
// void readFile(fs::FS &fs, const char * path){
|
||||
// Serial.printf("Reading file: %s\r\n", path);
|
||||
|
||||
// File file = fs.open(path);
|
||||
// if(!file || file.isDirectory()){
|
||||
// Serial.println("− failed to open file for reading");
|
||||
// return;
|
||||
// }
|
||||
|
||||
// Serial.println("− read from file:");
|
||||
// while(file.available()){
|
||||
// Serial.write(file.read());
|
||||
// }
|
||||
// }
|
||||
|
@ -266,7 +266,7 @@ void ISR_VECT receive_callback(int packet_size) {
|
||||
|
||||
bool startRadio() {
|
||||
update_radio_lock();
|
||||
if (!radio_online) {
|
||||
if (!radio_online && !console_active) {
|
||||
if (!radio_locked && hw_ready) {
|
||||
if (!LoRa.begin(lora_freq)) {
|
||||
// The radio could not be started.
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user