mirror of
https://github.com/Quill-OS/quill.git
synced 2024-12-26 23:57:22 -08:00
N249: Make USB connection dialog work
This commit is contained in:
parent
cf4fb0ff2a
commit
09872f052c
1 changed files with 8 additions and 0 deletions
|
@ -814,6 +814,14 @@ namespace {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if(global::deviceID == "n249\n") {
|
||||||
|
if(readFile("/sys/class/udc/ci_hdrc.0/state") != "not attached\n") {
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
// Thanks to https://github.com/koreader/KoboUSBMS/blob/2efdf9d920c68752b2933f21c664dc1afb28fc2e/usbms.c#L148-L158
|
// Thanks to https://github.com/koreader/KoboUSBMS/blob/2efdf9d920c68752b2933f21c664dc1afb28fc2e/usbms.c#L148-L158
|
||||||
int ntxfd;
|
int ntxfd;
|
||||||
|
|
Loading…
Reference in a new issue