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) {
75
75
76
76
bool PWMController::Handle_PWM_Write_DutyCycle (pb_istream_t *stream) {
77
77
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!" );
79
80
return false ;
80
81
}
81
82
82
- wippersnapper_pwm_PWMWriteDutyCycle msg_write_duty_cycle = *_pwm_model->GetPWMWriteDutyCycleMsg ();
83
+ wippersnapper_pwm_PWMWriteDutyCycle msg_write_duty_cycle =
84
+ *_pwm_model->GetPWMWriteDutyCycleMsg ();
83
85
uint8_t pin = atoi (msg_write_duty_cycle.pin + 1 );
84
86
85
87
// Check if the pin is already attached
@@ -90,7 +92,8 @@ bool PWMController::Handle_PWM_Write_DutyCycle(pb_istream_t *stream) {
90
92
}
91
93
92
94
// 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 )) {
94
97
WS_DEBUG_PRINTLN (" [pwm] Error: Failed to write duty cycle!" );
95
98
return false ;
96
99
}
You can’t perform that action at this time.
0 commit comments