Skip to content

Commit bfadbce

Browse files
committed
Re-export wooting_rgb_reset for drop-in replacement to older sdk uses
1 parent f563ac7 commit bfadbce

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

src/wooting-rgb-sdk.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,10 @@ bool wooting_rgb_close() {
107107
}
108108
}
109109

110+
bool wooting_rgb_reset() {
111+
return wooting_rgb_close();
112+
}
113+
110114
bool wooting_rgb_direct_set_key(uint8_t row, uint8_t column, uint8_t red, uint8_t green, uint8_t blue) {
111115
// We don't need to call this here as the wooting_usb_send_feature calls will perform the check again and there's no need to
112116
// run this multiple times, especially when each call will attempt to ensure connection is still available

src/wooting-rgb-sdk.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ called when you close the application.
7474
Return true (1) if the keyboard is reset
7575
*/
7676
WOOTINGRGBSDK_API bool wooting_rgb_close(void);
77+
WOOTINGRGBSDK_API bool wooting_rgb_reset(void);
7778

7879
/** @brief Directly set and update 1 key on the keyboard.
7980

0 commit comments

Comments
 (0)