fix: button matrix rows

This commit is contained in:
Raphael Coeffic
2022-06-11 15:13:11 +02:00
committed by Raphael Coeffic
parent 6a6ca7e578
commit cc41043883
+1 -1
View File
@@ -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;