keyboardio / KeyboardioHID

A HID library for Arduino
MIT License
34 stars 17 forks source link

Fix init order warning for BootKeyboard constructor #77

Closed gedankenexperimenter closed 2 years ago

gedankenexperimenter commented 2 years ago

The constructor for BootKeyboard had its member initialization list arguments (protocol and default_protocol) in the wrong order; they're required to be in the same order the member variables are declared in the class definition in the header file. This was causing -Wreorder warnings, caused by #73.

The fix was very simple, and since it doesn't affect the parameters of the constructor, only the member initialization list, it's a very minimal change.

algernon commented 2 years ago

Thank you!