From 69143bed9c33cca649c31648d361bc0bf0fab712 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Monda?= Date: Sat, 28 Apr 2018 15:00:32 +0200 Subject: [PATCH] Replace "computer" with "host". --- right/src/usb_composite_device.c | 10 +++++----- right/src/usb_report_updater.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/right/src/usb_composite_device.c b/right/src/usb_composite_device.c index 7f602b0..1680013 100644 --- a/right/src/usb_composite_device.c +++ b/right/src/usb_composite_device.c @@ -183,12 +183,12 @@ static void suspendHost(void) { } void WakeUpHost(bool sendResume) { - if (sendResume) { // The device should wake up the computer + if (sendResume) { // The device should wake up the host. // Send resume signal - this will call USB_DeviceKhciControl(khciHandle, kUSB_DeviceControlResume, NULL); USB_DeviceSetStatus(UsbCompositeDevice.deviceHandle, kUSB_DeviceStatusBus, NULL); } - IsHostSleeping = false; // The computer is now awake + IsHostSleeping = false; // The host is now awake. // Restore keyboard backlight and text KeyBacklightBrightness = oldKeyBacklightBrightness; @@ -223,13 +223,13 @@ static usb_status_t usbDeviceCallback(usb_device_handle handle, uint32_t event, break; case kUSB_DeviceEventSuspend: if (UsbCompositeDevice.attach) { - suspendHost(); // The computer sends this event when it goes to sleep, so turn off all the LEDs. + suspendHost(); // The host sends this event when it goes to sleep, so turn off all the LEDs. status = kStatus_USB_Success; } break; case kUSB_DeviceEventResume: - // We will just wake up the computer if there is any activity on the bus. - // The problem is that the computer won't send a resume event when it boots, so the lights will never come back on. + // We will just wake up the host if there is any activity on the bus. + // The problem is that the host won't send a resume event when it boots, so the lights will never come back on. status = kStatus_USB_Success; break; case kUSB_DeviceEventSetConfiguration: diff --git a/right/src/usb_report_updater.c b/right/src/usb_report_updater.c index ba2d097..6921963 100644 --- a/right/src/usb_report_updater.c +++ b/right/src/usb_report_updater.c @@ -429,6 +429,6 @@ void UpdateUsbReports(void) } if ((previousLayer != LayerId_Base || !IsUsbBasicKeyboardReportSent || !IsUsbMediaKeyboardReportSent || !IsUsbSystemKeyboardReportSent || !IsUsbMouseReportSent) && IsHostSleeping) { - WakeUpHost(true); // Wake up the computer if any key is pressed and the computer is sleeping. + WakeUpHost(true); // Wake up the host if any key is pressed and the computer is sleeping. } }