Explorar el Código

Fix USB plug-in while BT mode falls to be enumerated

tags/v1.9
tmk hace 9 años
padre
commit
9179246a1d
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      keyboard/hhkb_rn42/matrix.c

+ 1
- 1
keyboard/hhkb_rn42/matrix.c Ver fichero

void matrix_power_down(void) { void matrix_power_down(void) {
if (!matrix_power) return; if (!matrix_power) return;
// doesn't power save while USB connection is active // doesn't power save while USB connection is active
if (USB_DeviceState == DEVICE_STATE_Configured) return;
if (USB_DeviceState != DEVICE_STATE_Unattached) return;
if (timer_elapsed32(matrix_last_modified) <= MATRIX_POWER_SAVE) return; if (timer_elapsed32(matrix_last_modified) <= MATRIX_POWER_SAVE) return;
KEY_POWER_OFF(); KEY_POWER_OFF();
suspend_power_down(); suspend_power_down();

Cargando…
Cancelar
Guardar