Преглед на файлове

ps2_usb: Fix set led status at startup

master
tmk преди 7 години
родител
ревизия
435a1d3341
променени са 1 файла, в които са добавени 8 реда и са изтрити 0 реда
  1. 8
    0
      converter/ps2_usb/matrix.c

+ 8
- 0
converter/ps2_usb/matrix.c Целия файл

@@ -22,6 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h"
#include "debug.h"
#include "ps2.h"
#include "host.h"
#include "led.h"
#include "matrix.h"


@@ -215,6 +217,12 @@ uint8_t matrix_scan(void)
print("Overrun\n");
state = INIT;
break;
case 0xAA: // Self-test passed
case 0xFC: // Self-test failed
printf("BAT %s\n", (code == 0xAA) ? "OK" : "NG");
led_set(host_keyboard_leds());
state = INIT;
break;
default: // normal key make
if (code < 0x80) {
matrix_make(code);

Loading…
Отказ
Запис