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
a9d72472
Commit
a9d72472
authored
Dec 25, 2025
by
DESKTOP-MC5UL36\dell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hardware_iic读取失败会导致不上线,python文件下载的bug
parent
dcbd8165
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
6 deletions
+3
-6
hardware_iic.c
drivers/gpio/hardware_iic.c
+1
-3
go_deploy.c
modules/go_deploy/go_deploy.c
+2
-3
No files found.
drivers/gpio/hardware_iic.c
View file @
a9d72472
...
@@ -77,11 +77,9 @@ int hardware_iic_write(uint8_t device_addr, uint8_t reg_addr, const uint8_t *dat
...
@@ -77,11 +77,9 @@ int hardware_iic_write(uint8_t device_addr, uint8_t reg_addr, const uint8_t *dat
my_zlog_warn
(
"错误:向设备 0x%02X 寄存器 0x%02X 写入数据失败。"
,
device_addr
,
reg_addr
);
my_zlog_warn
(
"错误:向设备 0x%02X 寄存器 0x%02X 写入数据失败。"
,
device_addr
,
reg_addr
);
break
;
break
;
}
}
pthread_mutex_unlock
(
&
i2c_mutex
);
ret
=
0
;
// 成功
ret
=
0
;
// 成功
}
while
(
0
);
}
while
(
0
);
pthread_mutex_unlock
(
&
i2c_mutex
);
// my_zlog_info("成功向设备 0x%02X 寄存器 0x%02X 写入 %d 字节数据。", device_addr, reg_addr, len);
// my_zlog_info("成功向设备 0x%02X 寄存器 0x%02X 写入 %d 字节数据。", device_addr, reg_addr, len);
return
ret
;
return
ret
;
}
}
...
...
modules/go_deploy/go_deploy.c
View file @
a9d72472
...
@@ -290,10 +290,9 @@ int go_deploy_check_and_update(void) {
...
@@ -290,10 +290,9 @@ int go_deploy_check_and_update(void) {
if
(
access
(
target_file_path
,
F_OK
)
==
0
)
{
if
(
access
(
target_file_path
,
F_OK
)
==
0
)
{
chmod
(
target_file_path
,
0777
);
chmod
(
target_file_path
,
0777
);
}
}
}
// ---------------------------------------------------------
// 处理 video_proxy.7z
// 处理 video_proxy.7z
// ---------------------------------------------------------
cJSON
*
pythonUrl
=
cJSON_GetObjectItem
(
moreInfo
,
"pythonUrl"
);
cJSON
*
pythonUrl
=
cJSON_GetObjectItem
(
moreInfo
,
"pythonUrl"
);
if
(
pythonUrl
&&
cJSON_IsString
(
pythonUrl
)
&&
strlen
(
pythonUrl
->
valuestring
)
>
0
)
{
if
(
pythonUrl
&&
cJSON_IsString
(
pythonUrl
)
&&
strlen
(
pythonUrl
->
valuestring
)
>
0
)
{
char
target_7z_path
[
512
];
char
target_7z_path
[
512
];
...
@@ -302,6 +301,7 @@ int go_deploy_check_and_update(void) {
...
@@ -302,6 +301,7 @@ int go_deploy_check_and_update(void) {
int
need_download_7z
=
0
;
int
need_download_7z
=
0
;
// 检查文件是否存在
// 检查文件是否存在
my_zlog_info
(
"target_7z_path:%s"
,
target_7z_path
);
if
(
access
(
target_7z_path
,
F_OK
)
!=
0
)
{
if
(
access
(
target_7z_path
,
F_OK
)
!=
0
)
{
my_zlog_info
(
"video_proxy.7z not found, need download."
);
my_zlog_info
(
"video_proxy.7z not found, need download."
);
need_download_7z
=
1
;
need_download_7z
=
1
;
...
@@ -363,7 +363,6 @@ int go_deploy_check_and_update(void) {
...
@@ -363,7 +363,6 @@ int go_deploy_check_and_update(void) {
}
}
}
}
}
}
}
cJSON_Delete
(
root
);
cJSON_Delete
(
root
);
ret
=
0
;
ret
=
0
;
...
...
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