From: hcj <1224667075@qq.com> Date: Mon, 15 Dec 2025 04:28:05 +0000 (+0800) Subject: 修改当未定义cat1时 spi无法编译的问题 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=a2b5c0aec8c664205b83a35dc8ea3912e87c5b7d;p=mirrors%2FFD230.git 修改当未定义cat1时 spi无法编译的问题 --- diff --git a/code/sdk/zhihui/utils/custom_spi.c b/code/sdk/zhihui/utils/custom_spi.c index acdf06952..4e35dec87 100644 --- a/code/sdk/zhihui/utils/custom_spi.c +++ b/code/sdk/zhihui/utils/custom_spi.c @@ -25,7 +25,11 @@ void custom_spi_start(void); /* 外部变量:Python服务版本号 */ +#ifdef SUPPORT_CAT1_SERVICE extern uint8_t g_py_ver; +#else +uint8_t g_py_ver = 28; +#endif static osSemaphoreId_t g_semaphore_spi_id = NULL; static app_task_definition_t taskcfg={0};