Merge pull request #4337 from tyomitch/patch-1

[stm] `curr_pulseout` can be `STATIC`
This commit is contained in:
Jeff Epler 2021-03-05 15:53:31 -06:00 committed by GitHub
commit bed96a98d2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ STATIC volatile uint16_t pulse_array_index = 0;
STATIC uint16_t pulse_array_length; STATIC uint16_t pulse_array_length;
//Timer is shared, must be accessible by interrupt //Timer is shared, must be accessible by interrupt
STATIC TIM_HandleTypeDef tim_handle; 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) { STATIC void turn_on(pulseio_pulseout_obj_t *pulseout) {