mirror of
https://github.com/ttrftech/NanoVNA.git
synced 2026-04-09 00:13:59 +00:00
add interpolation on cal
This commit is contained in:
parent
0ce695b886
commit
774a11ae74
5 changed files with 90 additions and 4 deletions
14
flash.c
14
flash.c
|
|
@ -195,6 +195,20 @@ caldata_recall(int id)
|
|||
return 0;
|
||||
}
|
||||
|
||||
const properties_t *
|
||||
caldata_ref(int id)
|
||||
{
|
||||
const properties_t *src;
|
||||
if (id < 0 || id >= SAVEAREA_MAX)
|
||||
return NULL;
|
||||
src = (const properties_t*)saveareas[id];
|
||||
|
||||
if (src->magic != CONFIG_MAGIC)
|
||||
return NULL;
|
||||
if (checksum(src, sizeof(properties_t)) != 0)
|
||||
return NULL;
|
||||
return src;
|
||||
}
|
||||
|
||||
const uint32_t save_config_prop_area_size = 0x8000;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue