Unset the debugger variables before evaluating support to ensure that in case of

error we do not reuse old values from a previous KDL session. This ensures that
we don't try to use a USB keyboard if it was un- and replugged on an unsupported
port.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30266 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz
2009-04-19 17:08:09 +00:00
parent 00918d55dd
commit 5a0bca36e0
@@ -156,6 +156,9 @@ enter_debugger(void)
&& !has_debugger_command("ohci_process_transfer")))
return;
unset_debug_variable("_usbPipe");
unset_debug_variable("_usbReportSize");
evaluate_debug_command("get_usb_keyboard_config");
sUSBTransferLength = get_debug_variable("_usbReportSize", 0);
if (sUSBTransferLength == 0 || sUSBTransferLength > sizeof(sUSBTransferData))