File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -75,11 +75,13 @@ int PWMController::GetPWMHardwareIdx(uint8_t pin) {
7575
7676bool 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 }
You can’t perform that action at this time.
0 commit comments