ps2: republish debugger command should use keyboard number 5 by default
should fix #18919, I couldn't reproduce the crash locally. Change-Id: Ic522c299a758a98e83de03a0e84014e97984ae69 Reviewed-on: https://review.haiku-os.org/c/haiku/+/7785 Haiku-Format: Haiku-format Bot <[email protected]> Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
committed by
waddlesplash
parent
de2a79cea2
commit
0e72f7e22f
@@ -149,11 +149,11 @@ ps2_service_thread(void *arg)
|
||||
static int
|
||||
ps2_republish(int argc, char **argv)
|
||||
{
|
||||
int dev = 4;
|
||||
int dev = PS2_DEVICE_KEYB;
|
||||
if (argc == 2)
|
||||
dev = strtoul(argv[1], NULL, 0);
|
||||
if (dev < 0 || dev > 4)
|
||||
dev = 4;
|
||||
if (dev < 0 || dev >= PS2_DEVICE_COUNT)
|
||||
dev = PS2_DEVICE_KEYB;
|
||||
ps2_service_notify_device_republish(&ps2_device[dev]);
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user