Remove duplicate boolean
The AOA initialization state is already tracked by aoa_hid_initialized.
This commit is contained in:
parent
5ce1ccde85
commit
f04812fc71
1 changed files with 1 additions and 4 deletions
|
@ -456,8 +456,6 @@ scrcpy(struct scrcpy_options *options) {
|
||||||
|
|
||||||
acksync = &s->acksync;
|
acksync = &s->acksync;
|
||||||
|
|
||||||
bool aoa_hid_ok = false;
|
|
||||||
|
|
||||||
ok = sc_aoa_init(&s->aoa, serial, acksync);
|
ok = sc_aoa_init(&s->aoa, serial, acksync);
|
||||||
if (!ok) {
|
if (!ok) {
|
||||||
goto aoa_hid_end;
|
goto aoa_hid_end;
|
||||||
|
@ -474,13 +472,12 @@ scrcpy(struct scrcpy_options *options) {
|
||||||
goto aoa_hid_end;
|
goto aoa_hid_end;
|
||||||
}
|
}
|
||||||
|
|
||||||
aoa_hid_ok = true;
|
|
||||||
kp = &s->keyboard_hid.key_processor;
|
kp = &s->keyboard_hid.key_processor;
|
||||||
|
|
||||||
aoa_hid_initialized = true;
|
aoa_hid_initialized = true;
|
||||||
|
|
||||||
aoa_hid_end:
|
aoa_hid_end:
|
||||||
if (!aoa_hid_ok) {
|
if (!aoa_hid_initialized) {
|
||||||
LOGE("Failed to enable HID over AOA, "
|
LOGE("Failed to enable HID over AOA, "
|
||||||
"fallback to default keyboard injection method "
|
"fallback to default keyboard injection method "
|
||||||
"(-K/--hid-keyboard ignored)");
|
"(-K/--hid-keyboard ignored)");
|
||||||
|
|
Loading…
Reference in a new issue