fork download
  1. // Prevent phone from going into deep sleep
  2. Timer {
  3. interval: 1000
  4. running: myTime.running
  5. repeat: true
  6.  
  7. onTriggered: {
  8. if(!player.isActive)
  9. keepAlive.play()
  10. else if(!clock.trainingPhase)
  11. keepAlive.play()
  12. else
  13. keepAlive.stop()
  14. }
  15. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:10: fatal error: 'preventsleep.h' file not found
#include "preventsleep.h"
         ^
1 error generated.
stdout
Standard output is empty