Transceiver: use size_t and ARRAY_SIZE() in constructor

Change-Id: I164d66aad04d77957300b07e83b085f43a3ee8c1
This commit is contained in:
Vadim Yanitskiy 2020-10-24 16:48:33 +07:00 committed by fixeria
parent 24cb0c9948
commit 0ff9c9fca3
1 changed files with 2 additions and 2 deletions

View File

@ -144,8 +144,8 @@ Transceiver::Transceiver(const struct trx_cfg *cfg,
txFullScale = mRadioInterface->fullScaleInputValue();
rxFullScale = mRadioInterface->fullScaleOutputValue();
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++)
for (size_t i = 0; i < ARRAY_SIZE(mHandover); i++) {
for (size_t j = 0; j < ARRAY_SIZE(mHandover[i]); j++)
mHandover[i][j] = false;
}
}