Skip to content

Commit

Permalink
Merge pull request #51 from melexis/strict_prototypes
Browse files Browse the repository at this point in the history
Use strict prototypes for the functions
  • Loading branch information
Letme authored Oct 1, 2024
2 parents d441b78 + ccfe1f6 commit 7d5272f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ TARGET = mlx90632
# Flags
CFLAGS += -Wall -Wpedantic # just something for warnings...
CFLAGS += -Werror # Make sure we dont have any warnings
CFLAGS += -Wstrict-prototypes # Make sure we have strict prototyping for functions
ARFLAGS = rcs
# optimization levels
# -------------------
Expand Down
4 changes: 2 additions & 2 deletions src/mlx90632.c
Original file line number Diff line number Diff line change
Expand Up @@ -675,12 +675,12 @@ int32_t mlx90632_trigger_measurement_single(void)
return ret;
}

STATIC int32_t mlx90632_unlock_eeporm()
STATIC int32_t mlx90632_unlock_eeporm(void)
{
return mlx90632_i2c_write(0x3005, MLX90632_EEPROM_WRITE_KEY);
}

STATIC int32_t mlx90632_wait_for_eeprom_not_busy()
STATIC int32_t mlx90632_wait_for_eeprom_not_busy(void)
{
uint16_t reg_status;
int32_t ret = mlx90632_i2c_read(MLX90632_REG_STATUS, &reg_status);
Expand Down

0 comments on commit 7d5272f

Please sign in to comment.