Skip to content

Commit 61b0994

Browse files
committed
Fix flag typo
1 parent 06b6272 commit 61b0994

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

ports/stm/mpconfigport.mk

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,5 +42,4 @@ ifeq ($(MCU_SERIES),F7)
4242
CIRCUITPY_RTC = 0
4343
CIRCUITPY_FREQUENCYIO = 0
4444
CIRCUITPY_I2CSLAVE = 0
45-
# shared-module modules that still need prerequisites filled
4645
endif

shared-module/displayio/Display.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ void common_hal_displayio_display_construct(displayio_display_obj_t* self,
112112
self->backlight_inout.base.type = &mp_type_NoneType;
113113
if (backlight_pin != NULL && common_hal_mcu_pin_is_free(backlight_pin)) {
114114
// Avoid PWM types and functions when the module isn't enabled
115-
#if (CIRCUITPY_PULSIO)
115+
#if (CIRCUITPY_PULSEIO)
116116
pwmout_result_t result = common_hal_pulseio_pwmout_construct(&self->backlight_pwm, backlight_pin, 0, 50000, false);
117117
if (result != PWMOUT_OK) {
118118
self->backlight_inout.base.type = &digitalio_digitalinout_type;
@@ -174,14 +174,14 @@ bool common_hal_displayio_display_set_brightness(displayio_display_obj_t* self,
174174
bool ok = false;
175175

176176
// Avoid PWM types and functions when the module isn't enabled
177-
#if (CIRCUITPY_PULSIO)
177+
#if (CIRCUITPY_PULSEIO)
178178
bool ispwm = (self->backlight_pwm.base.type == &pulseio_pwmout_type) ? true : false;
179179
#else
180180
bool ispwm = false;
181181
#endif
182182

183183
if (ispwm) {
184-
#if (CIRCUITPY_PULSIO)
184+
#if (CIRCUITPY_PULSEIO)
185185
common_hal_pulseio_pwmout_set_duty_cycle(&self->backlight_pwm, (uint16_t) (0xffff * brightness));
186186
ok = true;
187187
#else
@@ -412,7 +412,7 @@ void displayio_display_background(displayio_display_obj_t* self) {
412412

413413
void release_display(displayio_display_obj_t* self) {
414414
release_display_core(&self->core);
415-
#if (CIRCUITPY_PULSIO)
415+
#if (CIRCUITPY_PULSEIO)
416416
if (self->backlight_pwm.base.type == &pulseio_pwmout_type) {
417417
common_hal_pulseio_pwmout_reset_ok(&self->backlight_pwm);
418418
common_hal_pulseio_pwmout_deinit(&self->backlight_pwm);

0 commit comments

Comments
 (0)