Workaround for reliable incoming calls waking up from CRUST
Replaced system() call with writefile() Signed-off-by: Maarten van Gompel <proycon@anaproy.nl>
This commit is contained in:
parent
0f9a86dece
commit
bcf4f5c249
1 changed files with 3 additions and 0 deletions
|
@ -371,6 +371,9 @@ syncstate()
|
|||
writefile(powerstatefile, "mem");
|
||||
//---- program blocks here due to sleep ----- //
|
||||
// Just woke up again
|
||||
fprintf(stderr, "Resetting usb connection to the modem\n");
|
||||
writefile("/sys/bus/usb/drivers/usb/unbind", "3-1");
|
||||
writefile("/sys/bus/usb/drivers/usb/bind", "3-1");
|
||||
fprintf(stderr, "Woke up\n");
|
||||
if (waketime > 0) {
|
||||
rtcresult = checkrtcwake();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue