Skip to content

Commit 85be440

Browse files
authored
Merge pull request #27 from hpsaturn/esp32c3-fix-last-espressif
removed old esp32c3 workaround around wifi connection
2 parents 986231f + 0283e48 commit 85be440

File tree

3 files changed

+15
-13
lines changed

3 files changed

+15
-13
lines changed

.github/workflows/platformio.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,23 @@ on:
1111

1212
jobs:
1313
build:
14-
runs-on: ubuntu-latest
14+
runs-on: ${{ matrix.os }}
1515
strategy:
1616
max-parallel: 1
1717
matrix:
18-
python-version: [3.7]
18+
os: [ubuntu-latest]
1919
steps:
20-
- uses: actions/checkout@v1
21-
- name: Set up Python ${{ matrix.python-version }}
22-
uses: actions/setup-python@v1
20+
- uses: actions/checkout@v4
21+
- uses: actions/cache@v3
2322
with:
24-
python-version: ${{ matrix.python-version }}
23+
path: |
24+
~/.cache/pip
25+
~/.platformio/.cache
26+
key: ${{ runner.os }}-pio
27+
- name: Set up Python
28+
uses: actions/setup-python@v5
29+
with:
30+
python-version: '3.10'
2531
- name: Install dependencies
2632
run: |
2733
python -m pip install --upgrade pip

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -68,12 +68,12 @@ void setup() {
6868
wcli.setCallback(new mESP32WifiCLICallbacks()); // (optional)
6969
wcli.setSilentMode(true); // less debug output
7070

71-
// Custom commands:
72-
wcli.add("sleep", &sleep, "\t\t<mode> <time> ESP32 sleep mode (deep/light)\r\n");
71+
// Custom commands example:
72+
wcli.add("sleep", &sleep, "\t\t<mode> <time> ESP32 sleep mode (deep/light)");
7373
wcli.add("echo", &echo, "\t\t\"message\" Echo the msg. Parameter into quotes");
7474
wcli.add("info", &info, "\t\tsystem status info");
7575
wcli.add("setled", &setled, "\t<PIN> config the LED GPIO for blink");
76-
wcli.add("blink", &blink, "\t\t<times> <millis> LED blink x times each x millis");
76+
wcli.add("blink", &blink, "\t\t<times> <millis> LED blink");
7777
wcli.add("reboot", &reboot, "\tperform a ESP32 reboot");
7878

7979
wcli.shell->attachLogo(logo);

src/ESP32WifiCLI.cpp

-4
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,6 @@ void ESP32WifiCLI::wifiAPConnect(bool save) {
143143
int retry = 0;
144144
WiFi.begin(temp_ssid.c_str(), temp_pasw.c_str());
145145

146-
#ifdef FAMILY
147-
if (FAMILY == "ESP32-C3") WiFi.setTxPower(WIFI_POWER_8_5dBm); // TODO: uggly workaround for some C3 devices
148-
#endif
149-
150146
while (WiFi.status() != WL_CONNECTED && retry++ < 20) { // M5Atom will connect automatically
151147
delay(1000);
152148
if (!silent) Serial.print(".");

0 commit comments

Comments
 (0)