Provide support for writing anu freq from menu write option
diff --git a/cgminer.c b/cgminer.c
index 37d7255..1c1a8fd 100644
--- a/cgminer.c
+++ b/cgminer.c
@@ -985,7 +985,6 @@ static void load_temp_cutoffs()
}
}
-#ifdef USE_ICARUS
static char *set_float_125_to_500(const char *arg, float *i)
{
char *err = opt_set_floatval(arg, i);
@@ -998,7 +997,6 @@ static char *set_float_125_to_500(const char *arg, float *i)
return NULL;
}
-#endif
static char *set_null(const char __maybe_unused *arg)
{
@@ -4829,6 +4827,11 @@ void write_config(FILE *fcfg)
fprintf(fcfg, ",\n\"%s\" : \"%d\"", p+2, *(int *)opt->u.arg);
if (opt->type & OPT_HASARG &&
+ ((void *)opt->cb_arg == (void *)set_float_125_to_500) &&
+ opt->desc != opt_hidden)
+ fprintf(fcfg, ",\n\"%s\" : \"%.1f\"", p+2, *(float *)opt->u.arg);
+
+ if (opt->type & OPT_HASARG &&
((void *)opt->cb_arg == (void *)opt_set_charp) &&
opt->desc != opt_hidden) {
char *carg = *(char **)opt->u.arg;