cleanup new config interface

This commit is contained in:
Hansi, dl9rdz 2021-09-18 19:52:42 +02:00
parent 79f5b199ae
commit ae1e9e7c48
1 changed files with 2 additions and 0 deletions

View File

@ -297,10 +297,12 @@ void Sonde::setConfig(const char *cfg) {
*(int *)config_list[i].data = atoi(val);
break;
case -7: // double
{
double d = atof(val);
if(*val == 0 || d==0) d = NAN;
*(double *)config_list[i].data = d;
break;
}
case -6: // display list
{
int idx = 0;