mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-01-17 05:32:45 +01:00
sys/ecc/hamming256: fix variableScope
This commit is contained in:
parent
39ecc12d9d
commit
08fd7f857b
@ -273,9 +273,8 @@ void hamming_compute256x( const uint8_t *pucData, uint32_t dwSize, uint8_t *puCo
|
||||
{
|
||||
DEBUG("hamming_compute256x()\n\r");
|
||||
|
||||
uint8_t padding;
|
||||
while (dwSize > 0) {
|
||||
padding = 0;
|
||||
uint8_t padding = 0;
|
||||
if (dwSize < 256) {
|
||||
padding = 256 - dwSize;
|
||||
}
|
||||
@ -290,14 +289,12 @@ void hamming_compute256x( const uint8_t *pucData, uint32_t dwSize, uint8_t *puCo
|
||||
|
||||
uint8_t hamming_verify256x( uint8_t *pucData, uint32_t dwSize, const uint8_t *pucCode )
|
||||
{
|
||||
uint8_t error;
|
||||
uint8_t result = 0;
|
||||
|
||||
DEBUG( "hamming_verify256x()\n\r" );
|
||||
|
||||
uint8_t padding;
|
||||
while (dwSize > 0) {
|
||||
padding = 0;
|
||||
uint8_t error, padding = 0;
|
||||
if (dwSize < 256) {
|
||||
padding = 256 - dwSize;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user