using memset() to shorten some code.

This commit is contained in:
Gerhard Hoffmann 2023-04-11 13:58:11 +02:00
parent ffbe0dfc2e
commit debade9942

View File

@ -2839,9 +2839,9 @@ void hwapi::bl_rebootDC(void) const
sendWRcmd_setSendBlock160(len, buf);
}
void hwapi::bl_startBL(void) const
{
void hwapi::bl_startBL(void) const {
uint8_t len, buf[20];
memset(buf, 0x00, sizeof(buf));
len=dcBL_activatBootloader(buf);
sendWRcmd_setSendBlock160(len, buf);
@ -2861,9 +2861,10 @@ bool hwapi::bl_checkBL(void) const
bool hwapi::bl_isUp(void) const
{
uint8_t receivedData[160];
uint8_t LL, nn;
uint8_t LL;
memset(receivedData, 0x00, sizeof(receivedData));
for (nn=0; nn<160; nn++) receivedData[nn]=0;
LL=epi_getRawRecLength();
if (LL>0)
{