Skip to content

Commit

Permalink
minior tweak and bugfix display
Browse files Browse the repository at this point in the history
  • Loading branch information
outdoorbits committed Jul 6, 2024
1 parent d94ae51 commit ded4e91
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions scripts/lib_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def __norm_value(self,value,val_type):
return(int(value,16) if value else 0)

elif val_type == 'float':
return(int(value))
return(float(value))

elif val_type == 'bool':
return(
Expand Down Expand Up @@ -216,7 +216,7 @@ def __get_config_standard(self):
'conf_DISP_COLOR_HIGH': {'value': 'white', 'type': 'str'},
'conf_DISP_COLOR_ALERT': {'value': 'orange', 'type': 'str'},
'conf_DISP_FONT_SIZE': {'value': 12, 'type': 'int'},
'conf_DISP_FRAME_TIME': {'value': 2, 'type': 'int'},
'conf_DISP_FRAME_TIME': {'value': 1, 'type': 'float'},
'conf_DISP_BLACK_ON_POWER_OFF': {'value': True, 'type': 'bool'},
'conf_DISP_IP_REPEAT': {'value': True, 'type': 'bool'},
'conf_MENU_ENABLED': {'value': True, 'type': 'bool'},
Expand Down
2 changes: 1 addition & 1 deletion scripts/setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -750,7 +750,7 @@ function upload_settings() {
<label for="conf_DISP_FRAME_TIME"><?php echo L::config_display_frame_time_label; ?></label><br>
<select name="conf_DISP_FRAME_TIME" id="conf_DISP_FRAME_TIME">
<?php
$display_frame_times_array=array("0.5","1","2","3");
$display_frame_times_array=array('0.1', '0.25', '0.5', '1', '2', '3');
foreach($display_frame_times_array as $display_frame_time) {
echo "<option value='" . $display_frame_time . "' " . ($config["conf_DISP_FRAME_TIME"] == $display_frame_time?" selected":"") . ">" . $display_frame_time . "</option>";
}
Expand Down

0 comments on commit ded4e91

Please sign in to comment.