Some small tweaks

This commit is contained in:
fauxpark 2023-10-14 05:05:03 +11:00
parent c1ed464b7a
commit 080ed12fcc
2 changed files with 6 additions and 2 deletions

View File

@ -14,7 +14,6 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "action_util.h"
#include "report.h"
#include "host.h"
#include "keycode_config.h"
@ -22,6 +21,11 @@
#include "util.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
# define RO_ADD(a, b) ((a + b) % KEYBOARD_REPORT_KEYS)
# define RO_SUB(a, b) ((a - b + KEYBOARD_REPORT_KEYS) % KEYBOARD_REPORT_KEYS)

View File

@ -172,7 +172,7 @@ typedef struct {
uint8_t report_id;
uint8_t mods;
uint8_t bits[NKRO_REPORT_BITS];
} report_nkro_t;
} PACKED report_nkro_t;
typedef struct {
uint8_t report_id;