Commit c52121ba authored by 学习的菜鸟's avatar 学习的菜鸟
parent c380ff23
cmake_minimum_required(VERSION 3.10) cmake_minimum_required(VERSION 3.10)
project(DeviceControlSystem project(DeviceControlSystem
VERSION 1.1.8 VERSION 1.1.9
LANGUAGES C LANGUAGES C
) )
......
#define PROJECT_VERSION_MAJOR 1 #define PROJECT_VERSION_MAJOR 1
#define PROJECT_VERSION_MINOR 1 #define PROJECT_VERSION_MINOR 1
#define PROJECT_VERSION_PATCH 8 #define PROJECT_VERSION_PATCH 9
#define GIT_HASH "" #define GIT_HASH ""
#define BUILD_TIMESTAMP "2025-06-26T03:49:36" #define BUILD_TIMESTAMP "2025-06-27T08:47:31"
#define BUILD_USER "orangepi" #define BUILD_USER "orangepi"
No preview for this file type
...@@ -3,14 +3,15 @@ ...@@ -3,14 +3,15 @@
void audio_Init() { void audio_Init() {
int adino_jude = system("pactl load-module module-alsa-source device=hw:2,0"); int adino_jude = system("pactl load-module module-alsa-source device=hw:2,0");
Delay_Ms(3,0);
int adino_play_jude =system("pactl load-module module-alsa-sink device=hw:2,0"); int adino_play_jude =system("pactl load-module module-alsa-sink device=hw:2,0");
if (adino_jude == 0 || adino_play_jude==0 ) { if (adino_jude == 0 && adino_play_jude==0 ) {
my_zlog_debug("至少一个命令执行成功!"); my_zlog_debug("命令执行成功!");
} else { } else {
if(adino_jude == 0) my_zlog_warn("麦命令执行失败,返回状态码: %d", adino_jude ); if(adino_jude != 0) my_zlog_warn("麦命令执行失败,返回状态码: %d", adino_jude );
if(adino_play_jude==0) my_zlog_warn("喇叭命令执行失败,返回状态码: %d", adino_play_jude ); if(adino_play_jude!=0) my_zlog_warn("喇叭命令执行失败,返回状态码: %d", adino_play_jude );
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment