Merge branch 'issue/1-shell-function-save-calibration-data' into dev
This commit is contained in:
@@ -432,9 +432,12 @@ static shellmatta_retCode_t shell_cmd_save_cal(const shellmatta_handle_t handle,
|
||||
(void)length;
|
||||
(void)arguments;
|
||||
int res;
|
||||
float offset, sens_dev;
|
||||
bool active;
|
||||
|
||||
adc_pt1000_get_resistance_calibration(&offset, &sens_dev, &active);
|
||||
res = settings_save_calibration(sens_dev, offset, active);
|
||||
|
||||
/* TODO: Change this */
|
||||
res = settings_save_calibration(0.0f, 0.0f);
|
||||
if (res) {
|
||||
shellmatta_printf(handle, "Error saving %d\r\n", res);
|
||||
} else {
|
||||
|
Reference in New Issue
Block a user