Skip to content

Commit

Permalink
Move get_or_create_blink_state to static
Browse files Browse the repository at this point in the history
  • Loading branch information
Enophi committed Oct 20, 2021
1 parent 7cf011a commit 7eb5464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mgos_pcf857x.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

static struct mgos_pcf857x_gpio_blink_state **blink_states = NULL;

struct mgos_pcf857x_gpio_blink_state *mgos_pcf857x_get_or_create_blink_state(struct mgos_pcf857x *dev, int pin) {
static struct mgos_pcf857x_gpio_blink_state *mgos_pcf857x_get_or_create_blink_state(struct mgos_pcf857x *dev, int pin) {
if (blink_states == NULL) {
blink_states = calloc(dev->num_gpios, sizeof(struct mgos_pcf857x_gpio_blink_state *));
LD("Init %d pin", dev->num_gpios);
Expand Down

0 comments on commit 7eb5464

Please sign in to comment.