Skip to content

Commit aadac2b

Browse files
committed
Tidy x2
1 parent ffd7a71 commit aadac2b

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/components/pwm/controller.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,11 +75,13 @@ int PWMController::GetPWMHardwareIdx(uint8_t pin) {
7575

7676
bool PWMController::Handle_PWM_Write_DutyCycle(pb_istream_t *stream) {
7777
if (!_pwm_model->DecodePWMWriteDutyCycle(stream)) {
78-
WS_DEBUG_PRINTLN("[pwm] Error: Failed to decode PWMWriteDutyCycle message!");
78+
WS_DEBUG_PRINTLN(
79+
"[pwm] Error: Failed to decode PWMWriteDutyCycle message!");
7980
return false;
8081
}
8182

82-
wippersnapper_pwm_PWMWriteDutyCycle msg_write_duty_cycle = *_pwm_model->GetPWMWriteDutyCycleMsg();
83+
wippersnapper_pwm_PWMWriteDutyCycle msg_write_duty_cycle =
84+
*_pwm_model->GetPWMWriteDutyCycleMsg();
8385
uint8_t pin = atoi(msg_write_duty_cycle.pin + 1);
8486

8587
// Check if the pin is already attached
@@ -90,7 +92,8 @@ bool PWMController::Handle_PWM_Write_DutyCycle(pb_istream_t *stream) {
9092
}
9193

9294
// Write the duty cycle to the pin
93-
if (! _pwm_hardware[pin_idx]->WriteDutyCycle(msg_write_duty_cycle.duty_cycle)) {
95+
if (!_pwm_hardware[pin_idx]->WriteDutyCycle(
96+
msg_write_duty_cycle.duty_cycle)) {
9497
WS_DEBUG_PRINTLN("[pwm] Error: Failed to write duty cycle!");
9598
return false;
9699
}

0 commit comments

Comments
 (0)