X-Git-Url: http://git.zerfleddert.de/cgi-bin/gitweb.cgi/fnordlicht-mini/blobdiff_plain/8bedc79d1511e2b3cb4998669beb27d84b42adc6..937531b62b01fa135fa28ab01475488f474a2653:/firmware/fnordlicht-firmware/storage.c diff --git a/firmware/fnordlicht-firmware/storage.c b/firmware/fnordlicht-firmware/storage.c index 0ad522d..7012dac 100644 --- a/firmware/fnordlicht-firmware/storage.c +++ b/firmware/fnordlicht-firmware/storage.c @@ -43,10 +43,16 @@ EEMEM struct storage_t eeprom_storage = STARTUP_PROGRAM, { /* uint8_t program */ - CONFIG_SCRIPT_DEFAULT, /* FIXME expected to be 0 atm */ + CONFIG_SCRIPT_DEFAULT, /* uint8_t program_parameters[PROGRAM_PARAMETER_SIZE] */ - /* FIXME: hardcoded parameters for colorwheel */ + /* these are taken from script.c */ +#if CONFIG_SCRIPT_DEFAULT == 0 + /* parameters for colorwheel */ 1u, 2u, 0, 0, 0, 0, 60u, 0, 255u, 255u +#elif CONFIG_SCRIPT_DEFAULT == 1 + /* parameters for random */ + 0, 23u, 2u, 1u, 3u, 0, 100u, 255u, 255u, 60u +#endif } } },