some basic debug messages

master
Stefan Dorn 2016-06-13 05:25:30 +01:00
parent fd9de01514
commit 01be9a4d7f
1 changed files with 6 additions and 0 deletions

View File

@ -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");
}
}
}