Skip to content

Commit

Permalink
added shabang and removed delay
Browse files Browse the repository at this point in the history
  • Loading branch information
pr3y committed May 5, 2024
1 parent 37737ca commit e33556f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
1 change: 1 addition & 0 deletions build.sh
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#!/bin/bash
~/.local/bin/esptool.py --chip esp32s3 merge_bin --output Bruce3_Cardputer.bin 0x0 .pio/build/m5stack-cardputer/bootloader.bin 0x8000 .pio/build/m5stack-cardputer/partitions.bin 0x10000 .pio/build/m5stack-cardputer/firmware.bin
~/.local/bin/esptool.py --chip esp32 merge_bin --output Bruce3_cplus2.bin 0x1000 .pio/build/m5stack-cplus2/bootloader.bin 0x8000 .pio/build/m5stack-cplus2/partitions.bin 0x10000 .pio/build/m5stack-cplus2/firmware.bin
~/.local/bin/esptool.py --chip esp32 merge_bin --output Bruce3_cplus1_1.bin 0x1000 .pio/build/m5stack-cplus1_1/bootloader.bin 0x8000 .pio/build/m5stack-cplus1_1/partitions.bin 0x10000 .pio/build/m5stack-cplus1_1/firmware.bin
3 changes: 2 additions & 1 deletion clean.sh
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
rm -f Bruce3_*
#!/bin/bash
rm -f Bruce3_*
4 changes: 2 additions & 2 deletions src/dpwo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ void dpwo_setup() {
Serial.println("scanning again");
ap_scanned = WiFi.scanNetworks();

//TODO: append vulnerable APs and dont repeat the output

//TODO: append vulnerable APs and dont repeat the output inside a loop
tft.fillScreen(BGCOLOR);

}
2 changes: 0 additions & 2 deletions src/dpwo.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,3 @@ void net_ap(int i);
void claro_ap(int i);

void dpwo_setup();

void dpwo_loop();
2 changes: 1 addition & 1 deletion src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ void loop() {
options.push_back({"Main Menu", [=]() { displayRedStripe("Main Menu"); }});
delay(200);
loopOptions(options,false,true,"WiFi");
delay(1000); // remover depois, está aqui só por causa do "displayRedStripe"
// delay(1000); // remover depois, está aqui só por causa do "displayRedStripe"
break;
case 1: // BLE
options = {
Expand Down
4 changes: 3 additions & 1 deletion src/wg.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
//TODO: add loop function in webinterface

#include <WireGuard-ESP32.h>
#include "wg.h"
#include "globals.h"
Expand Down Expand Up @@ -139,5 +141,5 @@ void wg_setup()
tft.println(local_ip);
tft.setTextColor(FGCOLOR, BGCOLOR);
Serial.println(local_ip);

tft.fillScreen(BGCOLOR);
}

0 comments on commit e33556f

Please sign in to comment.