Changed return type of cps_readBankData() from "int32_t" to "int".
Made the return type of cps_readBankData() consistent with the one of the other CPS API functions.
This commit is contained in:
parent
a5b925e76f
commit
65dde770e7
|
|
@ -87,7 +87,7 @@ int cps_readBankHeader(bankHdr_t *b_header, uint16_t pos);
|
|||
* @param pos: position of the channel index inside the bank.
|
||||
* @return the retrieved channel index on success, -1 on failure
|
||||
*/
|
||||
int32_t cps_readBankData(uint16_t bank_pos, uint16_t pos);
|
||||
int cps_readBankData(uint16_t bank_pos, uint16_t pos);
|
||||
|
||||
/**
|
||||
* Overwrite one contact to the codeplug stored in nonvolatile memory.
|
||||
|
|
|
|||
|
|
@ -296,7 +296,7 @@ int cps_readBankHeader(bankHdr_t *b_header, uint16_t pos)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t cps_readBankData(uint16_t bank_pos, uint16_t pos)
|
||||
int cps_readBankData(uint16_t bank_pos, uint16_t pos)
|
||||
{
|
||||
cps_header_t header = { 0 };
|
||||
if (_readHeader(&header))
|
||||
|
|
|
|||
|
|
@ -219,7 +219,7 @@ int cps_readBankHeader(bankHdr_t *b_header, uint16_t pos)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
int cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
{
|
||||
if(bank_pos >= maxNumZones) return -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -168,7 +168,7 @@ int cps_readBankHeader(bankHdr_t *b_header, uint16_t pos)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
int cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
{
|
||||
if(bank_pos >= maxNumZones) return -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ int cps_readBankHeader(bankHdr_t *b_header, uint16_t pos)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
int cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
{
|
||||
if(bank_pos >= maxNumZones) return -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -196,7 +196,7 @@ int cps_readBankHeader(bankHdr_t *b_header, uint16_t pos)
|
|||
return 0;
|
||||
}
|
||||
|
||||
int32_t cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
int cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
{
|
||||
if(bank_pos >= maxNumZones) return -1;
|
||||
|
||||
|
|
|
|||
|
|
@ -60,7 +60,7 @@ int cps_readBankHeader(bankHdr_t *b_header, uint16_t pos)
|
|||
return -1;
|
||||
}
|
||||
|
||||
int32_t cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
int cps_readBankData(uint16_t bank_pos, uint16_t ch_pos)
|
||||
{
|
||||
(void) bank_pos;
|
||||
(void) ch_pos;
|
||||
|
|
|
|||
Loading…
Reference in New Issue