Advertisement
svenhoefer

Untitled

Nov 27th, 2017
335
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.39 KB | None | 0 0
  1. diff --git a/src/neutrino.cpp b/src/neutrino.cpp
  2. index ee15326..caa868d 100644
  3. --- a/src/neutrino.cpp
  4. +++ b/src/neutrino.cpp
  5. @@ -2499,18 +2499,19 @@ TIMER_START();
  6.     long timerd_signal = 0;
  7.     timer_wakeup = false;//init
  8.     wake_up( timer_wakeup );
  9. +   timer_wakeup = (timer_wakeup && g_settings.shutdown_timer_record_type);
  10. +   g_settings.shutdown_timer_record_type = false;
  11.  
  12.     init_cec_setting = true;
  13. -   if(!(g_settings.shutdown_timer_record_type && timer_wakeup && g_settings.hdmi_cec_mode)){
  14. +   if(!(timer_wakeup && g_settings.hdmi_cec_mode))
  15. +   {
  16.         //init cec settings
  17.         CCECSetup cecsetup;
  18.         cecsetup.setCECSettings();
  19.         init_cec_setting = false;
  20.     }
  21. -   timer_wakeup = (timer_wakeup && g_settings.shutdown_timer_record_type);
  22. -   g_settings.shutdown_timer_record_type = false;
  23.  
  24. -   timerd_signal = (timer_wakeup && g_settings.shutdown_timer_record_type);
  25. +   timerd_signal = timer_wakeup;
  26.     pthread_create (&timer_thread, NULL, timerd_main_thread, (void *)&timerd_signal);
  27.     timerd_thread_started = true;
  28.  
  29. @@ -4132,7 +4133,7 @@ void CNeutrinoApp::ExitRun(int exit_code)
  30.             struct tm *tm = localtime(&t);
  31.             char date[30];
  32.             strftime(date, sizeof(date), "%c", tm);
  33. -           printf("timer_wakeup: %s (%ld)\n", date, timer_minutes * 60);
  34. +           printf("wakeup_time: %s (%ld)\n", date, timer_minutes * 60);
  35.  
  36.             /* prioritize proc filesystem */
  37.             if (access("/proc/stb/fp/wakeup_time", F_OK) == 0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement