Skip to content

Commit e4b67ef

Browse files
committed
fix espressif-arduino 7.0.1 compile error
1 parent 4178bf0 commit e4b67ef

7 files changed

Lines changed: 65 additions & 61 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
1.2.7:
2+
- esp32_idf: Fix StepperDemo.cpp build for ESP-IDF 6 (uses `esp_task_wdt_init(const esp_task_wdt_config_t*)` API via `ESP_IDF_VERSION_MAJOR >= 5` guard)
3+
- ci: Switch IDF build flags from `-Wno-error=attributes` to `-Wno-attributes` to silence `'noreturn' attribute does not apply to types` warning emitted by ESP-IDF 6 `hal/assert.h`
4+
15
1.2.6:
26
- esp32: Fix ESP-IDF 6 RMT header include (#366)
37

‎examples/StepperDemo/StepperDemo.ino‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ void output_info(bool only_running) {
800800

801801
#if defined(ARDUINO_ARCH_ESP32) || defined(ESP_PLATFORM)
802802
void esp_reset() {
803-
#if ESP_IDF_VERSION_MAJOR == 5
803+
#if ESP_IDF_VERSION_MAJOR >= 5
804804
const esp_task_wdt_config_t wdt_config = {
805805
.timeout_ms = 1, .idle_core_mask = 1, .trigger_panic = true};
806806

@@ -1458,7 +1458,7 @@ void loop() {
14581458
#ifdef NEED_APP_MAIN
14591459
#include "hal/wdt_hal.h"
14601460
extern "C" void app_main() {
1461-
#if ESP_IDF_VERSION_MAJOR == 5
1461+
#if ESP_IDF_VERSION_MAJOR >= 5
14621462
esp_task_wdt_deinit();
14631463
esp_task_wdt_config_t config = {
14641464
.timeout_ms = 1000, .idle_core_mask = 0, .trigger_panic = true};

‎extras/ci/build_matrix.yaml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ templates:
3030
- "-Wno-deprecated-declarations"
3131
- "-Wno-error=incompatible-pointer-types"
3232
- "-Wno-unused-function"
33-
- "-Wno-error=attributes"
33+
- "-Wno-attributes"
3434
- "-Wno-error=missing-field-initializers"
3535
board_build_f_cpu: 240000000L
3636
lib_extra_dirs: .
@@ -69,7 +69,7 @@ templates:
6969
- "-Wno-deprecated-declarations"
7070
- "-Wno-error=incompatible-pointer-types"
7171
- "-Wno-unused-function"
72-
- "-Wno-error=attributes"
72+
- "-Wno-attributes"
7373
- "-Wno-error=missing-field-initializers"
7474
board_build_f_cpu: 240000000L
7575
lib_extra_dirs: .
@@ -84,7 +84,7 @@ templates:
8484
- "-Wno-deprecated-declarations"
8585
- "-Wno-error=incompatible-pointer-types"
8686
- "-Wno-unused-function"
87-
- "-Wno-error=attributes"
87+
- "-Wno-attributes"
8888
- "-Wno-error=missing-field-initializers"
8989
board_build_f_cpu: 240000000L
9090
lib_extra_dirs: .
@@ -99,7 +99,7 @@ templates:
9999
- "-Wno-deprecated-declarations"
100100
- "-Wno-error=incompatible-pointer-types"
101101
- "-Wno-unused-function"
102-
- "-Wno-error=attributes"
102+
- "-Wno-attributes"
103103
- "-Wno-error=missing-field-initializers"
104104
board_build_f_cpu: 240000000L
105105
lib_extra_dirs: .
@@ -114,7 +114,7 @@ templates:
114114
- "-Wno-deprecated-declarations"
115115
- "-Wno-error=incompatible-pointer-types"
116116
- "-Wno-unused-function"
117-
- "-Wno-error=attributes"
117+
- "-Wno-attributes"
118118
- "-Wno-error=missing-field-initializers"
119119
board_build_f_cpu: 240000000L
120120
lib_extra_dirs: .
@@ -129,7 +129,7 @@ templates:
129129
- "-Wno-deprecated-declarations"
130130
- "-Wno-error=incompatible-pointer-types"
131131
- "-Wno-unused-function"
132-
- "-Wno-error=attributes"
132+
- "-Wno-attributes"
133133
- "-Wno-error=missing-field-initializers"
134134
board_build_f_cpu: 240000000L
135135
lib_extra_dirs: .

‎extras/ci/platformio.ini‎

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

‎idf_component.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
version: "1.2.6"
1+
version: "1.2.7"
22
description: "Fast acceleration stepper motor control for ESP-IDF"
33
dependencies: {}

‎library.properties‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name=FastAccelStepper
2-
version=1.2.6
2+
version=1.2.7
33
license=MIT
44
author=Jochen Kiemes <jochen@kiemes.de>
55
maintainer=Jochen Kiemes <jochen@kiemes.de>

‎manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"version": "1.2.6",
2+
"version": "1.2.7",
33
"description": "A high speed stepper library for Atmega 168/168p/328/328p (nano), 32u4 (leonardo), 2560, ESP32, ESP32S2, ESP32S3, ESP32C3, ESP32C6, Atmel SAM Due, Raspberry pi pico and pico 2",
44
"documentation": "https://github.com/gin66/FastAccelStepper",
55
"repository": {

0 commit comments

Comments
 (0)