Rename some variables and clean up coding style.

This commit is contained in:
László Monda
2018-04-28 11:19:01 +02:00
parent 02d6fb4628
commit 06ebed5537
2 changed files with 12 additions and 10 deletions

View File

@@ -196,8 +196,10 @@ static void ComputerIsSleeping(void) {
}
void WakeupComputer(bool sendResume) {
if (sendResume) // The device should wake up the computer
USB_DeviceSetStatus(UsbCompositeDevice.deviceHandle, kUSB_DeviceStatusBus, NULL); // Send resume signal - this will call USB_DeviceKhciControl(khciHandle, kUSB_DeviceControlResume, NULL);
if (sendResume) { // The device should wake up the computer
// Send resume signal - this will call USB_DeviceKhciControl(khciHandle, kUSB_DeviceControlResume, NULL);
USB_DeviceSetStatus(UsbCompositeDevice.deviceHandle, kUSB_DeviceStatusBus, NULL);
}
computerSleeping = false; // The computer is now awake