From c9bd34351456b558849273e61d911cadde527ee6 Mon Sep 17 00:00:00 2001 From: Jochen Kiemes Date: Sat, 14 Oct 2023 21:09:45 +0200 Subject: [PATCH] add missing esp32c3 workflow --- .github/workflows/build_examples_esp32c3.yml | 21 ++++++++++++++++++++ examples/StepperDemo/StepperDemo.ino | 2 +- 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/build_examples_esp32c3.yml diff --git a/.github/workflows/build_examples_esp32c3.yml b/.github/workflows/build_examples_esp32c3.yml new file mode 100644 index 00000000..49e1011a --- /dev/null +++ b/.github/workflows/build_examples_esp32c3.yml @@ -0,0 +1,21 @@ +name: Build examples for esp32c3arduino @ latest + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v3 + - name: Make directories + run: bash extras/scripts/build-pio-dirs.sh + - name: Build on PlatformIO + run: bash extras/scripts/build-platformio.sh esp32c3 + diff --git a/examples/StepperDemo/StepperDemo.ino b/examples/StepperDemo/StepperDemo.ino index e23e811a..c2f9375d 100644 --- a/examples/StepperDemo/StepperDemo.ino +++ b/examples/StepperDemo/StepperDemo.ino @@ -909,7 +909,7 @@ void test_direct_drive(const struct stepper_config_s *stepper) { void setup() { SerialInterface.begin(115200); #ifdef CONFIG_IDF_TARGET_ESP32C3 - while (!USBSerial) { + while (!Serial) { ; // wait for USB serial port to connect. } #endif