Closed thekunalsaini closed 4 years ago
@alranel please refer this
@thekunalsaini can you please explain why you think this change is necessary?
@aentinger keys[5] is required it can save memory because total 6 values are require which can be covered by this.
I am sorry but you are not making sense. Can you highlight me where this variable is used and can you guarantee that the array will never be exceeded? And ... btw ... keys[5]
holds only 5 entries.
https://github.com/arduino-libraries/Keyboard/blob/master/src/Keyboard.cpp#L246-L265 The proposed change is wrong, IMHO we can close this as invalid.
@cmaglie I think so too.Please close this, as I lack the powers to do so.
Oo due to some mistake i report this issue. Sorry please @aentinger
changes uint8_t keys[6] to keys[5]; as we do not enter values through the loop but the value is entered like this :- key [0] = 0; (manually) some Memory can be saved through this.