]> git.zerfleddert.de Git - fnordlicht-mini/blobdiff - firmware/fnordlicht-firmware/storage.c
whitespace cleanup, init eeprom for random startup, too
[fnordlicht-mini] / firmware / fnordlicht-firmware / storage.c
index 0ad522d9594ee6d969642896757828e12646721a..7012dac4fde8cf22fa4fb3be471363e1d882dca7 100644 (file)
@@ -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
       }
     }
   },
Impressum, Datenschutz