Fix code warnings

This commit is contained in:
Mario Hüttel 2020-11-01 21:24:13 +01:00
parent 32c8e2e937
commit dc9fc2f814
2 changed files with 1 additions and 2 deletions

View File

@ -142,7 +142,6 @@ static float calculate_standard_deviation(float *values, uint32_t count, float m
static int calibration_poll_data_acquisition(float *mem_array, uint32_t count, volatile int *flag, float *mu, float *std_dev)
{
int ret_val = 0;
uint32_t i;
if (!flag || !mem_array || !mu || !std_dev)
return -1000;

View File

@ -88,7 +88,7 @@ int sd_card_settings_save_calibration(float sens_deviation, float offset, bool a
{
char path[200];
FRESULT res = FR_OK;
int ret;
int ret = 0;
FIL file;
get_controller_settings_path(path, sizeof(path), "calibration");