1
0

ps2_usb: Fix set led status at startup

This commit is contained in:
tmk 2016-09-28 18:31:22 +09:00
parent 350897112b
commit 435a1d3341

View File

@ -22,6 +22,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "util.h" #include "util.h"
#include "debug.h" #include "debug.h"
#include "ps2.h" #include "ps2.h"
#include "host.h"
#include "led.h"
#include "matrix.h" #include "matrix.h"
@ -215,6 +217,12 @@ uint8_t matrix_scan(void)
print("Overrun\n"); print("Overrun\n");
state = INIT; state = INIT;
break; 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 default: // normal key make
if (code < 0x80) { if (code < 0x80) {
matrix_make(code); matrix_make(code);