"); //Table default to 100% width in stylesheet
for (i = 0; i < CHANNEL_MAX; i++) {
int channelType;
@@ -335,10 +335,10 @@ int http_fn_index(http_request_t* request) {
hprintf255(request, "
");
}
if (CHANNEL_Check(i)) {
- poststr(request, "
ON
");
+ poststr(request, "
ON
");
}
else {
- poststr(request, "
OFF
");
+ poststr(request, "
OFF
");
}
if (i == CHANNEL_MAX - 1) {
poststr(request, "
"); //Table default to 100% width in stylesheet
for (i = 0; i < PLATFORM_GPIO_MAX; i++) {
int role;
@@ -637,7 +637,7 @@ int http_fn_index(http_request_t* request) {
hprintf255(request, "", i);
+ hprintf255(request, "", i);
poststr(request, "");
}
}
@@ -683,7 +683,7 @@ int http_fn_index(http_request_t* request) {
hprintf255(request, "", SPECIAL_CHANNEL_BRIGHTNESS);
+ hprintf255(request, "", SPECIAL_CHANNEL_BRIGHTNESS);
poststr(request, "");
}
if (c_pwms >= 3) {
@@ -700,7 +700,7 @@ int http_fn_index(http_request_t* request) {
hprintf255(request, "");
+ hprintf255(request, "");
poststr(request, "");
}
if (c_pwms == 2 || c_pwms >= 4) {
@@ -718,7 +718,7 @@ int http_fn_index(http_request_t* request) {
poststr(request, "
");
hprintf255(request, "
LED Temperature Slider %s (%ld K) (Warm <--- ---> Cool)
", activeStr, pwmKelvin);
- hprintf255(request, "
");
for (i = 0; i < OBK_TOTAL_FLAGS; i++) {
@@ -2825,14 +2825,15 @@ int http_fn_cfg_startup(http_request_t* request) {
http_setup(request, httpMimeTypeHTML);
http_html_start(request, "Config startup");
- hprintf255(request, "
Here you can set pin start values
");
- hprintf255(request, "
For relays, simply use 1 or 0
");
- hprintf255(request, "
For 'remember last power state', use -1 as a special value
");
- hprintf255(request, "
For dimmers, range is 0 to 100
");
- hprintf255(request, "
For custom values, you can set any number you want to
");
- hprintf255(request, "
Remember that you can also use short startup command to run commands like led_baseColor #FF0000 and led_enableAll 1 etc
");
- hprintf255(request, "
Remembering last state of LED driver also fully you can set it in");
- hprintf255(request, "Options->General, set Flag 12 - [LED] remember LED driver state (RGBCW, enable, brightness, temperature) after reboot!
");
+ poststr(request, "
Here you can set pin start values
");
+ poststr(request, "
For relays, simply use 1 or 0
");
+ poststr(request, "
To 'remember last power state', use -1 as a special value
");
+ poststr(request, "
For dimmers, range is 0 to 100
");
+ poststr(request, "
For custom values, you can set any numeric value
");
+ poststr(request, "
Remember that you can also use short startup command to run commands like led_baseColor #FF0000 and led_enableAll 1 etc
");
+ hprintf255(request, "
To remember last state of LED driver, set ");
+ hprintf255(request, "Flag 12 - %s", g_obk_flagNames[12]);
+ poststr(request, "
");
+
for (i = 0; i < CHANNEL_MAX; i++) {
if (CHANNEL_IsInUse(i)) {
- int startValue;
+ int startValue = CFG_GetChannelStartupValue(i);
- startValue = CFG_GetChannelStartupValue(i);
+ poststr(request, "