From 4720dc179a4cc60866b921e2c84f1966d539a80d Mon Sep 17 00:00:00 2001 From: Artyom Skrobov Date: Fri, 5 Mar 2021 12:52:13 +0200 Subject: [PATCH] [stm] `curr_pulseout` can be `STATIC` Not used outside of PulseOut.c --- ports/stm/common-hal/pulseio/PulseOut.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/stm/common-hal/pulseio/PulseOut.c b/ports/stm/common-hal/pulseio/PulseOut.c index 963aee721a..38027606f9 100644 --- a/ports/stm/common-hal/pulseio/PulseOut.c +++ b/ports/stm/common-hal/pulseio/PulseOut.c @@ -47,7 +47,7 @@ STATIC volatile uint16_t pulse_array_index = 0; STATIC uint16_t pulse_array_length; //Timer is shared, must be accessible by interrupt STATIC TIM_HandleTypeDef tim_handle; -pulseio_pulseout_obj_t *curr_pulseout = NULL; +STATIC pulseio_pulseout_obj_t *curr_pulseout = NULL; STATIC void turn_on(pulseio_pulseout_obj_t *pulseout) {