Index: trunk/src_plugins/export_lpr/lpr.c =================================================================== --- trunk/src_plugins/export_lpr/lpr.c (revision 34519) +++ trunk/src_plugins/export_lpr/lpr.c (revision 34520) @@ -19,6 +19,7 @@ #include const char *lpr_cookie = "lpr HID"; +static rnd_hid_t lpr_hid; static const rnd_export_opt_t base_lpr_options[] = { @@ -53,6 +54,8 @@ lpr_options = calloc(num_lpr_options, sizeof(rnd_hid_attribute_t)); memcpy(lpr_options, ps_opts, num_lpr_options * sizeof(rnd_hid_attribute_t)); memcpy(lpr_options, base_lpr_options, sizeof(base_lpr_options)); + + rnd_hid_load_defaults(&lpr_hid, lpr_options, num_lpr_options); } /* @@ -107,7 +110,6 @@ ps_calibrate_1(hid, xval, yval, 1); } -static rnd_hid_t lpr_hid; static int lpr_usage(rnd_hid_t *hid, const char *topic) {