Fix cmake breakage introduced in r352:
error: 'for' loop initial declaration used outside C99 mode
This commit is contained in:
parent
5302930b09
commit
5e452dbb13
1 changed files with 2 additions and 1 deletions
|
@ -596,12 +596,13 @@ nfc_initiator_poll_targets(const nfc_device_t* pnd,
|
|||
}
|
||||
// byte_t abtInAutoPoll[] = { 0xd4, 0x60, 0x0f, 0x01, 0x00 };
|
||||
size_t szTxInAutoPoll = 4 + szTargetTypes;
|
||||
size_t n;
|
||||
byte_t *pbtTxInAutoPoll = malloc( szTxInAutoPoll );
|
||||
pbtTxInAutoPoll[0] = 0xd4;
|
||||
pbtTxInAutoPoll[1] = 0x60;
|
||||
pbtTxInAutoPoll[2] = btPollNr;
|
||||
pbtTxInAutoPoll[3] = btPeriod;
|
||||
for(size_t n=0; n<szTargetTypes; n++) {
|
||||
for(n=0; n<szTargetTypes; n++) {
|
||||
pbtTxInAutoPoll[4+n] = pnttTargetTypes[n];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue