aboutsummaryrefslogtreecommitdiffstats
path: root/keyboards/massdrop/ctrl/ctrl.h
diff options
context:
space:
mode:
authorGravatar patrickmt <40182064+patrickmt@users.noreply.github.com>2018-09-28 21:32:15 -0400
committerGravatar Jack Humbert <jack.humb@gmail.com>2018-09-28 21:32:15 -0400
commit239f02408e219567be060be7e65e92e888304ed0 (patch)
treea5461db9b599dfb0fb7e3e6faccc064353cdfe78 /keyboards/massdrop/ctrl/ctrl.h
parente2dee054d0649cb7b5b051a04a9bd82d14a0fdcd (diff)
downloadqmk_firmware-239f02408e219567be060be7e65e92e888304ed0.tar.gz
Massdrop keyboard updates for SEND_STRING, syscalls, stdio, debug prints, Auto Shift (#3973)
* Update for SEND_STRING usage Update for SEND_STRING usage. Sending keyboard reports (kbd, nkro) now obey the minimum polling time. While attempting to send a keyboard report and waiting for a USB poll, other functions of the keyboard, including LED effects and power management, will continue to operate at their intended intervals. * Updates for send string, syscalls, stdio, debug prints, auto shift Now properly waiting for previous keys sent over USB to complete before sending new. Added heap to linker and now compiling with syscalls support. Removed custom string functions and now using stdio. dprintf now works as intended through virtser device. * CTRL and ALT keymap updates CTRL mac keymap updated ALT default and mac keymap updated ALT rules.mk added Auto Shift with default no * Code cleanup as per discussion with vomindoraan Code cleanup as per discussion with vomindoraan
Diffstat (limited to 'keyboards/massdrop/ctrl/ctrl.h')
-rw-r--r--keyboards/massdrop/ctrl/ctrl.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/keyboards/massdrop/ctrl/ctrl.h b/keyboards/massdrop/ctrl/ctrl.h
index dc7c7eabe..c83efca16 100644
--- a/keyboards/massdrop/ctrl/ctrl.h
+++ b/keyboards/massdrop/ctrl/ctrl.h
@@ -30,3 +30,13 @@
{ K59, K60, K61, K62, K63, K76, K50, K33 }, \
{ K72, K73, K74, K75, K85, K86, K87, }, \
}
+
+#define TOGGLE_FLAG_AND_PRINT(var, name) { \
+ if (var) { \
+ dprintf(name " disabled\r\n"); \
+ var = !var; \
+ } else { \
+ var = !var; \
+ dprintf(name " enabled\r\n"); \
+ } \
+ }