Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
nuphy-src committed Jun 6, 2024
1 parent 4cb72cd commit 07b64a6
Show file tree
Hide file tree
Showing 8 changed files with 427 additions and 294 deletions.
10 changes: 6 additions & 4 deletions keyboards/nuphy/air60_v2/ansi/ansi.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.

#include "ansi.h"
#include "usb_main.h"
#include "rf_driver.h"

user_config_t user_config;
DEV_INFO_STRUCT dev_info =
Expand Down Expand Up @@ -65,6 +66,7 @@ extern uint8_t side_speed;
extern uint8_t side_rgb;
extern uint8_t side_colour;
extern report_keyboard_t *keyboard_report;
extern report_nkro_t *nkro_report;
extern uint8_t uart_bit_report_buf[32];
extern uint8_t bitkb_report_buf[32];
extern uint8_t bytekb_report_buf[8];
Expand Down Expand Up @@ -213,8 +215,8 @@ void m_break_all_key(void)
clear_keyboard();

keymap_config.nkro = 1;
memset(keyboard_report, 0, sizeof(report_keyboard_t));
host_keyboard_send(keyboard_report);
memset(nkro_report, 0, sizeof(report_nkro_t));
host_nkro_send(nkro_report);
wait_ms(10);

keymap_config.nkro = 0;
Expand Down Expand Up @@ -257,7 +259,7 @@ static void switch_dev_link(uint8_t mode)
}
else {
host_mode = HOST_RF_TYPE;
host_set_driver(0);
host_set_driver(&rf_host_driver);
}
}

Expand Down Expand Up @@ -330,7 +332,7 @@ void dial_sw_scan(void)
f_dial_sw_init_ok = 1;
f_first = false;
if (dev_info.link_mode != LINK_USB) {
host_set_driver(0);
host_set_driver(&rf_host_driver);
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion keyboards/nuphy/air60_v2/ansi/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#define RGB_MATRIX_LED_COUNT (DRIVER_1_LED_TOTAL + DRIVER_2_LED_TOTAL)

#define RGB_MATRIX_DEFAULT_MODE RGB_MATRIX_CYCLE_LEFT_RIGHT // Sets the default mode, if none has been set
#define RGB_DISABLE_WHEN_USB_SUSPENDED // turn off effects when suspended
#define RGB_MATRIX_SLEEP // turn off effects when suspended

#define RGB_MATRIX_FRAMEBUFFER_EFFECTS
#define RGB_MATRIX_KEYPRESSES
Expand Down
Loading

0 comments on commit 07b64a6

Please sign in to comment.