@@ -442,32 +442,32 @@ async function generateSnippetLocally() {
442442 lines . push ( " - id: display_page" ) ;
443443 lines . push ( " type: int" ) ;
444444 lines . push ( " restore_value: true" ) ;
445- lines . push ( " initial_value: '0' " ) ;
445+ lines . push ( " initial_value: 0 " ) ;
446446
447447 lines . push ( " - id: page_refresh_default_s" ) ;
448448 lines . push ( " type: int" ) ;
449449 lines . push ( " restore_value: true" ) ;
450450 // LCD devices should refresh quickly; e-paper/battery devices can use longer intervals
451451 const defaultRefreshInterval = payload . refresh_interval || ( isLcd ? 60 : ( payload . deep_sleep_interval || 600 ) ) ;
452- lines . push ( ` initial_value: ' ${ defaultRefreshInterval } ' ` ) ;
452+ lines . push ( ` initial_value: ${ defaultRefreshInterval } ` ) ;
453453
454454 lines . push ( " - id: page_refresh_current_s" ) ;
455455 lines . push ( " type: int" ) ;
456456 lines . push ( " restore_value: false" ) ;
457- lines . push ( " initial_value: '60' " ) ;
457+ lines . push ( " initial_value: 60 " ) ;
458458
459459 // Track last page switch time for auto-cycle
460460 lines . push ( " - id: last_page_switch_time" ) ;
461461 lines . push ( " type: uint32_t" ) ;
462462 lines . push ( " restore_value: false" ) ;
463- lines . push ( " initial_value: '0' " ) ;
463+ lines . push ( " initial_value: 0 " ) ;
464464
465465 // CoreInk: Add stay_awake_mode global for Prevent Sleep feature
466466 if ( getDeviceModel ( ) === "m5stack_coreink" ) {
467467 lines . push ( " - id: stay_awake_mode" ) ;
468468 lines . push ( " type: bool" ) ;
469469 lines . push ( " restore_value: true" ) ;
470- lines . push ( " initial_value: ' false' " ) ;
470+ lines . push ( " initial_value: false" ) ;
471471 }
472472
473473 quoteRssWidgetsEarly . forEach ( w => {
@@ -3143,6 +3143,7 @@ function generateScriptSection(payload, pagesLocal, profile = {}) {
31433143 if ( payload . auto_cycle_enabled && pagesLocal . length > 1 ) {
31443144 const cycleInterval = parseInt ( payload . auto_cycle_interval_s || 30 , 10 ) ;
31453145 lines . push ( " - id: auto_cycle_timer" ) ;
3146+ lines . push ( " mode: restart" ) ;
31463147 lines . push ( " then:" ) ;
31473148 lines . push ( " - lambda: |-" ) ;
31483149 lines . push ( " uint32_t now = millis();" ) ;
0 commit comments