Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
timhendriks93 committed Feb 2, 2024
1 parent d546a48 commit b97fca6
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 15 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ jobs:
name: "Build"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Create library ZIP
run: |
mkdir BlenderServoAnimation
cp -R src examples library.properties README.md LICENSE BlenderServoAnimation
zip -r blender_servo_animation_arduino_library BlenderServoAnimation
- name: Archive library ZIP
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: blender_servo_animation_arduino_library.zip
path: |
Expand All @@ -38,14 +38,14 @@ jobs:
WebSocketLiveMode,
]
steps:
- uses: actions/checkout@v3
- uses: actions/cache@v3
- uses: actions/checkout@v4
- uses: actions/cache@v4
with:
path: |
~/.cache/pip
~/.platformio/.cache
key: ${{ runner.os }}-pio
- uses: actions/setup-python@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install PlatformIO Core
Expand All @@ -58,7 +58,7 @@ jobs:
name: "Lint"
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Lint with clang-format
uses: jidicula/clang-format-action@v4.10.2
with:
Expand All @@ -71,14 +71,14 @@ jobs:
name: "Test"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Cache PlatformIO directory
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: /home/runner/.platformio
key: platformio-dir
- name: Set up Python 3.10
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
Expand Down
6 changes: 4 additions & 2 deletions examples/MultipleScenesSD/MultipleScenesSD.ino
Original file line number Diff line number Diff line change
Expand Up @@ -65,13 +65,15 @@ BlenderServoAnimation::Animation animation;

void setup() {
Serial.begin(9600);
while (!Serial);
while (!Serial) {
};

Serial.println("Initializing SD card...");

if (!SD.begin(CS_PIN)) {
Serial.println("Initialization failed!");
while (true);
while (true) {
};
}
Serial.println("Initialization done.");

Expand Down
6 changes: 4 additions & 2 deletions examples/SDAnimation/SDAnimation.ino
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,15 @@ BlenderServoAnimation::Animation animation;

void setup() {
Serial.begin(9600);
while (!Serial);
while (!Serial) {
};

Serial.println("Initializing SD card...");

if (!SD.begin(CS_PIN)) {
Serial.println("Initialization failed!");
while (true);
while (true) {
};
}
Serial.println("Initialization done.");

Expand Down
4 changes: 2 additions & 2 deletions src/internal/ServoManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ class ServoManager {

void handleCommand();

Servo* addServo(byte id);
Servo* getServo(byte id);
Servo *addServo(byte id);
Servo *getServo(byte id);
};

} // namespace BlenderServoAnimation
Expand Down

0 comments on commit b97fca6

Please sign in to comment.