Open ChrisNoob6460 opened 5 years ago
Is the keyboard's config.h?
if not, then that's the problem. #ifndef CONFIG_H
is wrong, and already defined.
In fact, we've moved away from using that, and replacing:
#ifndef CONFIG_H
#define CONFIG_H
with:
#pragma once
Thanks for the reply! Yes, what I listed above is a direct copy of my config.h. I just tried changing the config.h file and replacing what you listed to #pragma once
, however i was unable to compile it succesfully, prompting an error with #enddif
. I tried just deleting #enddif
out of curiosity and was able to compile it succesfully, but after flashing I was unable to type anything at all except for toggling RGB and the soft reset button. I'm sorry for this really crude way of describing, as I am still new to QMK and coding in general, and that the Newbies guide didn't cover the specific details.
do you mean #enddif
or #endif
seems like a typo to me
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed in the next 30 days unless it is tagged properly or other activity occurs.
For maintainers: Please label with bug
, in progress
, on hold
, discussion
or to do
to prevent the issue from being re-flagged.
bump, interested in resolution for this
Can you please provide the command you’re using to perform the compilation, and please specify which folder you’re running this command from.
Please try the following:
The config.h you should be editing is the one that resides in your keyboard folder. You will find another config.h file in your keymap folder, this file is not the correct one you need to edit. You must edit the one that is in your keyboard folder.
I tried to make use of this directive and for me, everything worked as expected.
I had my layer key configured to do MO(layer) and I redefined it to do TT(layer).
I compiled everything and flashed my keyboard. Tap toggle worked as expected. The layer was enabled after 5 rapid taps of the key.
Then I made the change to my config.h and added the define statement. I then did a re-compile and this time I saw quite a lot of things being compiled. I flashed my keyboard afterwards.
Now my keyboard enables the layer after only two rapid taps of the key, just as expected.
Please let me know if you are able to address your issue with the above steps.
Thanks
The command you should use to compile is the following, (please substitute your keyboard name and keymap names within the command)
qmk compile -kb [keyboard] -km [keymap]
It should be invoked from your top level qmk directory.
I can't reproduce this, at all.
I've had #define TAPPING_TOGGLE 1
in my config for a long time now, and changing the value definitely changes the behavior appropriately.
I may have stumbled into this bug, or at least something similar. I've had TAPPING_TOGGLE set to 2 for years, but when syncing my layout with the last 2 years of QMK updates TAPPING_TOGGLE 2
no longer works. TAPPING_TOGGLE 1
(the default for my keyboard) works fine however. See https://github.com/BrknRobot/qmk_firmware/tree/npd/keyboards/ergodox_ez/keymaps/npd for the affected layout
I have inserted #define TAPPING_TOGGLE 2 into my config.h file, and flashed with it, yet it still requires me to tap 5 times (default) to access my TT layer. I'm not sure if it's my defining problem, or that my config.h file isn't compiled into the hex file at all. One other possibility would be me having enabled retro-tapping, permissive hold, and others at the same time, not sure if it would clash with the definition. I do have my config.h file in my keymap folder during compiling, so I'm not sure where I went wrong, or if I did. Attached config.h below for reference: