]> git.friedersdorff.com Git - max/tmk_keyboard.git/commitdiff
xt_usb: Clear flag before enabling interrupt
authortmk <hasu@tmk-kbd.com>
Thu, 1 Mar 2018 17:29:46 +0000 (02:29 +0900)
committertmk <hasu@tmk-kbd.com>
Wed, 14 Mar 2018 12:32:22 +0000 (21:32 +0900)
converter/xt_usb/config.h

index 24bf3c330718d0155096452a7efa70edc0fcdc5b..917626f8192340a5064797ac3bc530d7def6241a 100644 (file)
@@ -71,7 +71,9 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
     EICRA |= ((1<<ISC11) |      \
               (0<<ISC10));      \
 } while (0)
+/* clears flag and enables interrupt */
 #define XT_INT_ON()  do {      \
+    EIFR  |= (1<<INTF1);        \
     EIMSK |= (1<<INT1);         \
 } while (0)
 #define XT_INT_OFF() do {      \