fix: button matrix rows
This commit is contained in:
committed by
Raphael Coeffic
parent
6a6ca7e578
commit
cc41043883
+1
-1
@@ -88,7 +88,7 @@ void ButtonMatrix::initBtnMap(uint8_t cols, uint8_t btns)
|
||||
{
|
||||
deallocate();
|
||||
|
||||
uint8_t rows = ((btns - 1) / 4) + 1;
|
||||
uint8_t rows = ((btns - 1) / cols) + 1;
|
||||
txt_cnt = btns + rows;
|
||||
btn_cnt = btns;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user