diff options
| author | Jeff Epler <jeff@adafruit.com> | 2021-03-05 15:53:31 -0600 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-05 15:53:31 -0600 |
| commit | bed96a98d2bda5ced647c0ad12fd5e10d1c7ea91 (patch) | |
| tree | c67416a6fb2e34db65a33c121779c4302e7922f0 | |
| parent | 2881699cf962005573a079c5345bc6232768bb68 (diff) | |
| parent | 4720dc179a4cc60866b921e2c84f1966d539a80d (diff) | |
Merge pull request #4337 from tyomitch/patch-1
[stm] `curr_pulseout` can be `STATIC`
| -rw-r--r-- | ports/stm/common-hal/pulseio/PulseOut.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/stm/common-hal/pulseio/PulseOut.c b/ports/stm/common-hal/pulseio/PulseOut.c index 963aee721..38027606f 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) { |
