mirror of
https://github.com/esp8266/Arduino.git
synced 2025-07-30 16:24:09 +03:00
CI - clang-format-18 (#9225)
* Fix shell variable comparison without $CI present + '[' = true ']' ./tests/restyle.sh: line 16: [: =: unary operator expected vs. + '[' '' = true ']' * Update to clang-format-18 new opt to skip overly eager macro formatting https://clang.llvm.org/docs/ClangFormatStyleOptions.html#skipmacrodefinitionbody minor changes between 15 and 18 for ide examples reference arduino-ide format is still stuck with 15, though https://github.com/arduino/clang-static-binaries/releases * Pin clang-format in CI recipe not the script itself * style
This commit is contained in:
@ -55,8 +55,7 @@ void setup() {
|
||||
|
||||
if (!SD.begin(PIN_SD_CS)) {
|
||||
Serial.println("failed!");
|
||||
while (1)
|
||||
; // init fail, die here
|
||||
while (1); // init fail, die here
|
||||
}
|
||||
|
||||
Serial.println("SD OK!");
|
||||
@ -69,8 +68,7 @@ void loop() {
|
||||
bmpFile = SD.open(__Gsbmp_files[i]);
|
||||
if (!bmpFile) {
|
||||
Serial.println("didn't find image");
|
||||
while (1)
|
||||
;
|
||||
while (1);
|
||||
}
|
||||
|
||||
if (!bmpReadHeader(bmpFile)) {
|
||||
|
@ -99,8 +99,7 @@ void setup() {
|
||||
|
||||
if (!SD.begin(PIN_SD_CS)) {
|
||||
Serial.println("failed!");
|
||||
while (1)
|
||||
; // init fail, die here
|
||||
while (1); // init fail, die here
|
||||
}
|
||||
|
||||
Serial.println("SD OK!");
|
||||
@ -141,8 +140,7 @@ void loop() {
|
||||
|
||||
if (!bmpFile) {
|
||||
Serial.println("didn't find image");
|
||||
while (1)
|
||||
;
|
||||
while (1);
|
||||
}
|
||||
|
||||
if (!bmpReadHeader(bmpFile)) {
|
||||
@ -153,8 +151,7 @@ void loop() {
|
||||
bmpdraw(bmpFile, 0, 0, 1);
|
||||
bmpFile.close();
|
||||
|
||||
while (1)
|
||||
;
|
||||
while (1);
|
||||
}
|
||||
|
||||
/*********************************************/
|
||||
|
Reference in New Issue
Block a user