mirror of
https://github.com/qmk/qmk_firmware.git
synced 2025-07-01 05:22:05 +00:00
Some small tweaks
This commit is contained in:
parent
c1ed464b7a
commit
080ed12fcc
@ -14,7 +14,6 @@
|
|||||||
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "action_util.h"
|
|
||||||
#include "report.h"
|
#include "report.h"
|
||||||
#include "host.h"
|
#include "host.h"
|
||||||
#include "keycode_config.h"
|
#include "keycode_config.h"
|
||||||
@ -22,6 +21,11 @@
|
|||||||
#include "util.h"
|
#include "util.h"
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
extern report_keyboard_t *keyboard_report;
|
||||||
|
#ifdef NKRO_ENABLE
|
||||||
|
extern report_nkro_t *nkro_report;
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef RING_BUFFERED_6KRO_REPORT_ENABLE
|
#ifdef RING_BUFFERED_6KRO_REPORT_ENABLE
|
||||||
# define RO_ADD(a, b) ((a + b) % KEYBOARD_REPORT_KEYS)
|
# define RO_ADD(a, b) ((a + b) % KEYBOARD_REPORT_KEYS)
|
||||||
# define RO_SUB(a, b) ((a - b + KEYBOARD_REPORT_KEYS) % KEYBOARD_REPORT_KEYS)
|
# define RO_SUB(a, b) ((a - b + KEYBOARD_REPORT_KEYS) % KEYBOARD_REPORT_KEYS)
|
||||||
|
@ -172,7 +172,7 @@ typedef struct {
|
|||||||
uint8_t report_id;
|
uint8_t report_id;
|
||||||
uint8_t mods;
|
uint8_t mods;
|
||||||
uint8_t bits[NKRO_REPORT_BITS];
|
uint8_t bits[NKRO_REPORT_BITS];
|
||||||
} report_nkro_t;
|
} PACKED report_nkro_t;
|
||||||
|
|
||||||
typedef struct {
|
typedef struct {
|
||||||
uint8_t report_id;
|
uint8_t report_id;
|
||||||
|
Loading…
Reference in New Issue
Block a user