From 01be9a4d7f31bcf579dd400d8921b03b5be9b02b Mon Sep 17 00:00:00 2001 From: Stefan Dorn Date: Mon, 13 Jun 2016 05:25:30 +0100 Subject: [PATCH] some basic debug messages --- src/main.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.c b/src/main.c index 4e4b877..9169602 100644 --- a/src/main.c +++ b/src/main.c @@ -188,6 +188,10 @@ void layer_disable(uint8_t layer) { if (layer >= KB_LAYERS || layer == 0) { return; } layers_active[layer] = false; + + if (layers_sticky[layer] != StickyNone) { + debug_print("sticky up!\n"); + } layers_sticky[layer] = StickyNone; if (layer == layers_top) { @@ -475,6 +479,7 @@ void kbfun_layer_sticky() { layer_disable_top(); } layer_enable(layer, StickyOnceDown); + debug_print("sticky down!\n"); // this should be the only place we care about this flag being cleared non_trans_key_pressed = false; @@ -489,6 +494,7 @@ void kbfun_layer_sticky() { // was pressed, push the layer again, but in the // StickyOnceUp state layer_enable(layer, StickyOnceUp); + debug_print("sticky still down!\n"); } } }