Browse Source

ps2_usb: Fix set led status at startup

master
tmk 7 years ago
parent
commit
435a1d3341
1 changed files with 8 additions and 0 deletions
  1. 8
    0
      converter/ps2_usb/matrix.c

+ 8
- 0
converter/ps2_usb/matrix.c View File

@@ -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…
Cancel
Save