Skip to content

Commit

Permalink
removed unnecessary conditional #defines
Browse files Browse the repository at this point in the history
  • Loading branch information
pljakobs committed Oct 31, 2024
1 parent 89ec329 commit 7e54adc
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions Sming/Arch/Esp32/Components/driver/include/driver/pwm.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,9 @@
*
****/

#include <soc/soc_caps.h>


#pragma once

#ifdef SOC_LEDC_CHANNEL_NUM
#define PWM_CHANNEL_NUM_MAX SOC_LEDC_CHANNEL_NUM
#else
// this should not happen if the correct esp32 includes are used, just to be absolutely sure
#define PWM_CHANNEL_NUM_MAX 8
#endif

0 comments on commit 7e54adc

Please sign in to comment.