firstone
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user