Mercurial > public > ostc4
comparison Discovery/Src/tComm.c @ 130:b7689d9e888a FlipDisplay
Minor changes to improved code quality and to eliminate warnings
author | Ideenmodellierer |
---|---|
date | Sun, 17 Feb 2019 21:22:13 +0100 |
parents | 8f8ea3a32e82 |
children | cc9c18075e00 |
comparison
equal
deleted
inserted
replaced
129:239aa58b533d | 130:b7689d9e888a |
---|---|
1608 uint32_t length1, length2, lengthCompare, offsetCompare, ByteCompareStatus; | 1608 uint32_t length1, length2, lengthCompare, offsetCompare, ByteCompareStatus; |
1609 uint32_t lengthTotal, offsetTotal, pruefsumme, pruefsummeCalc; | 1609 uint32_t lengthTotal, offsetTotal, pruefsumme, pruefsummeCalc; |
1610 uint32_t checksum, checksumCalc; | 1610 uint32_t checksum, checksumCalc; |
1611 uint8_t id; | 1611 uint8_t id; |
1612 | 1612 |
1613 checksumCalc = 0; | |
1613 | 1614 |
1614 //Get length | 1615 //Get length |
1615 if(HAL_UART_Receive(&UartHandle, sBuffer, 4,5000)!= HAL_OK) // 58000 | 1616 if(HAL_UART_Receive(&UartHandle, sBuffer, 4,5000)!= HAL_OK) // 58000 |
1616 return 0; | 1617 return 0; |
1617 | 1618 |