This commit is contained in:
2021-04-08 14:01:48 +03:00
parent 44b43036b5
commit 2067a114ae
4 changed files with 616 additions and 98 deletions

View File

@@ -44,15 +44,6 @@ void MmwDemo_sleep(void)
asm(" IDLE ");
}
static uint32_t split(uint8_t *mes){
uint32_t i;
for(i = 0; i < BIG_MSG_SIZE; i++){
if(mes[i] == '\n') break;
}
i++;
return i;
}
static int32_t mboxWrite_ch0(uint8_t message, int32_t len)
{
@@ -85,9 +76,9 @@ static void mboxReadProc_ch0()
{
Mailbox_readFlush (peerMailbox);
id = message[1];
if(message[0] == 0) {
if(message[0] == 1) {
ret = mboxWrite_ch0(buffer[id], 1);
} else if(message[0] == 1) {
} else if(message[0] == 0) {
buffer[id] = message[2];
}