Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
car-controlserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenzhongjian
car-controlserver
Commits
c52121ba
Commit
c52121ba
authored
Jun 27, 2025
by
学习的菜鸟
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature://jwt验证通过并在麦和喇叭启动命令之间加入了延时
parent
c380ff23
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
CMakeLists.txt
CMakeLists.txt
+1
-1
version.h
build/include/version.h
+2
-2
main
build/main
+0
-0
main.c
usr/main.c
+5
-4
No files found.
CMakeLists.txt
View file @
c52121ba
cmake_minimum_required
(
VERSION 3.10
)
project
(
DeviceControlSystem
VERSION 1.1.
8
VERSION 1.1.
9
LANGUAGES C
)
...
...
build/include/version.h
View file @
c52121ba
#define PROJECT_VERSION_MAJOR 1
#define PROJECT_VERSION_MINOR 1
#define PROJECT_VERSION_PATCH
8
#define PROJECT_VERSION_PATCH
9
#define GIT_HASH ""
#define BUILD_TIMESTAMP "2025-06-2
6T03:49:36
"
#define BUILD_TIMESTAMP "2025-06-2
7T08:47:31
"
#define BUILD_USER "orangepi"
build/main
View file @
c52121ba
No preview for this file type
usr/main.c
View file @
c52121ba
...
...
@@ -3,14 +3,15 @@
void
audio_Init
()
{
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"
);
if
(
adino_jude
==
0
||
adino_play_jude
==
0
)
{
my_zlog_debug
(
"
至少一个
命令执行成功!"
);
if
(
adino_jude
==
0
&&
adino_play_jude
==
0
)
{
my_zlog_debug
(
"命令执行成功!"
);
}
else
{
if
(
adino_jude
=
=
0
)
my_zlog_warn
(
"麦命令执行失败,返回状态码: %d"
,
adino_jude
);
if
(
adino_play_jude
=
=
0
)
my_zlog_warn
(
"喇叭命令执行失败,返回状态码: %d"
,
adino_play_jude
);
if
(
adino_jude
!
=
0
)
my_zlog_warn
(
"麦命令执行失败,返回状态码: %d"
,
adino_jude
);
if
(
adino_play_jude
!
=
0
)
my_zlog_warn
(
"喇叭命令执行失败,返回状态码: %d"
,
adino_play_jude
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment