neutrino: fix console output to signalize timer wakeups

Signed-off-by: Thilo Graf <dbt@novatux.de>


Origin commit data
------------------
Branch: ni/coolstream
Commit: dc78eaf018
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-09 (Thu, 09 Nov 2017)

Origin message was:
------------------
- neutrino: fix console output to signalize timer wakeups

Signed-off-by: Thilo Graf <dbt@novatux.de>


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-09 21:28:47 +01:00
committed by Thilo Graf
parent c82185130a
commit eb53bde94f

View File

@@ -2177,7 +2177,6 @@ void wake_up(bool &wakeup)
wakeup = ((wk.source == FP_WAKEUP_SOURCE_TIMER) /* || (wk.source == WAKEUP_SOURCE_PWLOST)*/);
close(fd);
}
printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");
#endif
#if HAVE_ARM_HARDWARE
FILE *f = fopen("/proc/stb/fp/was_timer_wakeup", "r");
@@ -2196,6 +2195,7 @@ void wake_up(bool &wakeup)
wakeup = 1;
unlink("/tmp/.timer_wakeup");
}
printf("[timerd] wakeup from standby: %s\n", wakeup ? "yes" : "no");
if(!wakeup){
puts("[neutrino.cpp] executing " NEUTRINO_LEAVE_DEEPSTANDBY_SCRIPT ".");