aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/radio.h2
-rw-r--r--ipc.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/include/radio.h b/include/radio.h
index cfefe2f..47b0022 100644
--- a/include/radio.h
+++ b/include/radio.h
@@ -61,7 +61,7 @@ void ipc_send(struct ipc_request *request);
int ipc_recv(struct ipc_response *response);
/* Convenience functions for ipc_send */
-void ipc_msg_send(const int command, const int type, unsigned char *data, const int length, unsigned char aseq);
+void ipc_msg_send(const int command, const int type, unsigned char *data, const int length, unsigned char mseq);
void ipc_msg_send_get(const int command, unsigned char aseq);
void ipc_msg_send_exec(const int command, unsigned char aseq);
diff --git a/ipc.c b/ipc.c
index 200fd5b..441a130 100644
--- a/ipc.c
+++ b/ipc.c
@@ -36,12 +36,12 @@ inline void ipc_msg_send_exec(const int command, unsigned char aseq)
}
/* Wrapper for ipc_send */
-void ipc_msg_send(const int command, const int type, unsigned char *data, const int length, unsigned char aseq)
+void ipc_msg_send(const int command, const int type, unsigned char *data, const int length, unsigned char mseq)
{
struct ipc_request request;
- request.mseq = 0xff;
- request.aseq = aseq;
+ request.mseq = mseq;
+ request.aseq = 0xff;
request.group = IPC_GROUP(command);
request.index = IPC_INDEX(command);
request.type = type;