summaryrefslogtreecommitdiff
path: root/converter/x68k_usb/led.c
diff options
context:
space:
mode:
Diffstat (limited to 'converter/x68k_usb/led.c')
-rw-r--r--converter/x68k_usb/led.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/converter/x68k_usb/led.c b/converter/x68k_usb/led.c
index a1c1d546ec..ccc38699c7 100644
--- a/converter/x68k_usb/led.c
+++ b/converter/x68k_usb/led.c
@@ -19,7 +19,6 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "serial.h"
#include "led.h"
#include "debug.h"
-#include "x68k.h"
void led_set(uint8_t usb_led)
@@ -35,12 +34,10 @@ void led_set(uint8_t usb_led)
* bit 0 かな
*/
uint8_t led = 0xFF;
- xprintf("usb_led: %02X\n", usb_led);
if (usb_led&(1<<USB_LED_NUM_LOCK)) led &= ~(1<<2);
if (usb_led&(1<<USB_LED_CAPS_LOCK)) led &= ~(1<<3);
if (usb_led&(1<<USB_LED_SCROLL_LOCK)) led &= ~(1<<1);
if (usb_led&(1<<USB_LED_COMPOSE)) led &= ~(1<<4);
if (usb_led&(1<<USB_LED_KANA)) led &= ~(1<<0);
- xprintf("led: %02X\n", led);
- x68k_send(led);
+ serial_send(led);
}