adafruit / RGB-matrix-Panel

Arduino library and example code for the 16x32 RGB matrix panels in the shop
http://www.adafruit.com/products/420
302 stars 145 forks source link

Clang is complaining about formatting #73

Closed dhalbert closed 1 year ago

dhalbert commented 1 year ago
Run python3 ci/run-clang-format.py -e "ci/*" -e "bin/*" -r .
--- ./RGBmatrixPanel.cpp    (original)
+++ ./RGBmatrixPanel.cpp    (reformatted)
@@ -974,13 +974,12 @@
     pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew
         pew pew pew pew pew pew pew pew pew pew pew pew pew

-        if (WIDTH == 64) {
-      pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew
-          pew pew pew pew pew pew pew pew pew pew pew pew pew pew
-    }
+        if (WIDTH == 64){
+            pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew
+                pew pew pew pew pew pew pew pew pew pew pew pew pew pew pew}

 #if defined(ARDUINO_ARCH_SAMD) || defined(ARDUINO_ARCH_ESP32)
-    *outclrreg = clkmask; // Set clock low
+            *outclrreg = clkmask; // Set clock low
 #endif

     buffptr = ptr; //+= 32;
Error: Process completed with exit code 1.
ladyada commented 1 year ago

@PaintYourDragon maybe just turn off clang formatting for that file or section?

dhalbert commented 1 year ago

these are pretty simple indentation fixes -- I think they could just be done, and it will be quiet after taht.

PaintYourDragon commented 1 year ago

Done fixed!