Add option to control screen resetting on device release

This commit is contained in:
Piotr Orzechowski
2018-03-07 11:11:27 +01:00
parent 4463fe139c
commit e8db600878
4 changed files with 25 additions and 2 deletions

View File

@@ -104,8 +104,10 @@ module.exports = syrup.serial()
})
plugin.on('leave', function() {
service.pressKey('home')
service.thawRotation()
if (options.screenReset) {
service.pressKey('home')
service.thawRotation()
}
service.releaseWakeLock()
})