Added brightness to profile loading and saving

* Bumped profile version to 3
* Loading a v1/v2 profile onto a device with brightness will work
* Loading a v3 profile onto a device without brightness also works
* Add profile version parameter to Get/SetModeDescription

Commit amended for code style and to update versioning by Adam Honse <calcprogrammer1@gmail.com>
This commit is contained in:
Chris 2021-02-10 16:40:39 +11:00 committed by Adam Honse
parent 6fd2ea9276
commit a46eccef3c
6 changed files with 130 additions and 20 deletions

View file

@ -14,8 +14,9 @@
| 0: Initial (unversioned) protocol |
| 1: Add versioning, vendor string (Release 0.5) |
| 2: Add profile controls (Release 0.6) |
| 3: Add brightness field to modes (Release 0.7) |
\*-----------------------------------------------------*/
#define OPENRGB_SDK_PROTOCOL_VERSION 2
#define OPENRGB_SDK_PROTOCOL_VERSION 3
/*-----------------------------------------------------*\
| Default OpenRGB SDK port is 6742 |