mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-11 09:40:24 +00:00
put iPad into deepsleep as power off doesn't work
This commit is contained in:
parent
018346b56c
commit
db69bfd901
@ -386,8 +386,14 @@ static int iphone_on (void *transport_config){
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int iphone_off (void *config){
|
static int iphone_off (void *config){
|
||||||
// power off
|
char *machine = get_machine_name();
|
||||||
|
if (strncmp(machine, "iPad", strlen("iPad,")) == 0) {
|
||||||
|
// put iPad into deep sleep
|
||||||
|
system ("echo \"wake off\n quit\" | BlueTool");
|
||||||
|
} else {
|
||||||
|
// power off for iPhone and iPod
|
||||||
system ("echo \"power off\n quit\" | BlueTool");
|
system ("echo \"power off\n quit\" | BlueTool");
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user