using memset() to shorten some code.
This commit is contained in:
parent
ffbe0dfc2e
commit
debade9942
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user