Skip to content

Commit

Permalink
fixed coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
pljakobs committed Oct 30, 2024
1 parent 8b02f58 commit 67ac057
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Sming/Arch/Esp32/Core/HardwarePWM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -140,16 +140,14 @@ uint32_t maxDuty(ledc_timer_bit_t bits)

HardwarePWM::HardwarePWM(uint8_t* pins, uint8_t no_of_pins) : channel_count(no_of_pins)
{

assert(no_of_pins <= SOC_LEDC_CHANNEL_NUM);

if(no_of_pins == 0)
{

if(no_of_pins == 0) {
return;
}

periph_module_enable(PERIPH_LEDC_MODULE);

for(uint8_t i = 0; i < no_of_pins; i++) {
channels[i] = pins[i];

Expand Down

0 comments on commit 67ac057

Please sign in to comment.