Skip to content

Commit a01b06a

Browse files
committed
oops
1 parent 6bbb986 commit a01b06a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cores/esp32/esp32-hal-ledc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,7 @@ double ledcChangeFrequency(uint8_t chan, double freq, uint8_t bit_num)
335335

336336
static int8_t pin_to_channel[SOC_GPIO_PIN_COUNT] = { 0 };
337337
static int cnt_channel = SOC_LEDC_CHANNEL_NUM;
338-
void analogWrite(pin_t pin, int value) {
338+
void analogWrite(uint8_t pin, int value) {
339339
// Use ledc hardware for internal pins
340340
if (pin < SOC_GPIO_PIN_COUNT) {
341341
if (pin_to_channel[pin] == 0) {

cores/esp32/esp32-hal.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void yield(void);
9090
#include "esp32-hal-psram.h"
9191
#include "esp32-hal-cpu.h"
9292

93-
void analogWrite(pin_t pin, int value);
93+
void analogWrite(uint8_t pin, int value);
9494

9595
//returns chip temperature in Celsius
9696
float temperatureRead();

0 commit comments

Comments
 (0)