From f55872e09f7123c6d8e0578e90fe6ea21b8d1afe Mon Sep 17 00:00:00 2001 From: Kai Ryu Date: Wed, 17 Dec 2014 19:00:40 +0900 Subject: [PATCH] Fix issue that softpwm interrupt breaks yc059 sending --- keyboard/RedScarfIII/yc059.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/keyboard/RedScarfIII/yc059.c b/keyboard/RedScarfIII/yc059.c index 90615dc7..3046956a 100644 --- a/keyboard/RedScarfIII/yc059.c +++ b/keyboard/RedScarfIII/yc059.c @@ -17,6 +17,7 @@ along with this program. If not, see . #include #include +#include #include "yc059.h" #include "debug.h" @@ -40,11 +41,13 @@ void yc059_init(void) void yc059_send(uint8_t data) { + cli(); yc059_send_header(); yc059_send_address(); yc059_send_byte(data); yc059_send_byte(~data); yc059_send_stop(); + sei(); } inline