Skip to content

Commit

Permalink
fl16: Disable NKRO for now
Browse files Browse the repository at this point in the history
The keyboard can still detect NKRO but the HID report limits that to
6KRO.

Causes slow start up on Linux.
Probably be related to:

- qmk/qmk_firmware#8733
- qmk/qmk_firmware#14814
- qmk/qmk_firmware#19372

Signed-off-by: Daniel Schaefer <dhs@frame.work>
  • Loading branch information
JohnAZoidberg committed Mar 23, 2023
1 parent 666109f commit ef518f5
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion keyboards/lotus/ansi/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"extrakey": true,
"console": true,
"command": false,
"nkro": true,
"nkro": false,
"audio": false
},
"debounce": 5,
Expand Down
4 changes: 4 additions & 0 deletions keyboards/lotus/factory.c
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,11 @@ void handle_factory_command(uint8_t *data) {
print("Reading Device serial number\n");


#ifdef SERIAL_NUMBER
uprintf("Serial number: %s\n", ascii_serialnum);
#else
uprintf("Serial number unavailable\n");
#endif
break;
default:
uprintf("Unknown factory command: %u\n", factory_command_id);
Expand Down
2 changes: 1 addition & 1 deletion keyboards/lotus/gridpad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"extrakey": true,
"console": true,
"command": false,
"nkro": true,
"nkro": false,
"audio": false
},
"debounce": 5,
Expand Down
2 changes: 1 addition & 1 deletion keyboards/lotus/iso/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"extrakey": true,
"console": true,
"command": false,
"nkro": true,
"nkro": false,
"audio": false
},
"debounce": 5,
Expand Down
2 changes: 1 addition & 1 deletion keyboards/lotus/jis/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"extrakey": true,
"console": true,
"command": false,
"nkro": true,
"nkro": false,
"audio": false
},
"debounce": 5,
Expand Down
7 changes: 5 additions & 2 deletions keyboards/lotus/lotus.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@
#include "quantum.h"
#include "lotus.h"

#include "usb_descriptor.h"
#include "usb_descriptor_common.h"

// Prefix string literal with L for descriptors
#define USBCONCAT(a, b) a##b
#define USBSTR(s) USBCONCAT(L, s)
#ifdef SERIAL_NUMBER
USB_Descriptor_String_t PROGMEM SerialNumberString = {
.Header = {
.Size = sizeof(FALLBACK_SERIAL_NUMBER),
Expand Down Expand Up @@ -47,6 +49,7 @@ void *lotus_serial_number_string(void) {
uint16_t lotus_serial_number_string_len(void) {
return pgm_read_byte(&SerialNumberString.Header.Size);
}
#endif

void keyboard_post_init_kb(void) {
keyboard_post_init_user();
Expand Down
2 changes: 1 addition & 1 deletion keyboards/lotus/numpad/info.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"extrakey": true,
"console": true,
"command": false,
"nkro": true,
"nkro": false,
"audio": false
},
"debounce": 5,
Expand Down

0 comments on commit ef518f5

Please sign in to comment.