保证第一次进入系统指南针是关闭状态
authorSnickerSun <snickersun@163.com>
Mon, 1 Apr 2024 11:24:28 +0000 (19:24 +0800)
committerSnickerSun <snickersun@163.com>
Mon, 1 Apr 2024 11:24:28 +0000 (19:24 +0800)
code/sdk/drivers/peripheral/mag/service/mag_service.c

index 2c5612a..43e9da5 100644 (file)
@@ -142,7 +142,8 @@ static void mag_service_check_task(void const *arg)
     int32_t ret;
     common_notify_mail_t mail;
     uint32_t msgsize = (uint32_t)sizeof(common_notify_mail_t);
-
+    MMC5603_CheckID();
+    mmc5603_stop();
     while (1) {
         ret = osal_msg_queue_read_copy(g_app_queue, (void *)&mail, &msgsize,
                                        OSAL_MSGQ_WAIT_FOREVER);