Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
TianYing_ty100
Project
Project
Details
Activity
Releases
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
TY
TianYing_ty100
Commits
63829cb3
Commit
63829cb3
authored
May 21, 2024
by
李俭双
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:43591,43588,解决时间设置不保存问题,以及设置界面下电后重新上电回到主界面
parent
1b0ae904
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
Key_user.c
Firmware/Source/Component/Key/Key_user.c
+9
-2
No files found.
Firmware/Source/Component/Key/Key_user.c
View file @
63829cb3
...
...
@@ -10,6 +10,7 @@ _Menu_Data MenuData;
uint8_t
PageType
=
0
;
uint8_t
PageMenu
=
0
;
RTC_TimeTypeDef
RTC_TimeStruct
;
RTC_DateTypeDef
RTC_DateStruct
;
RTC_CounterTypeDef
counter_val
;
...
...
@@ -234,6 +235,7 @@ void Key_Left_Short_Press(void)
datmax
=
23u
;
datmin
=
0u
;
Menu_u8Data_Updata_Process
(
updataDir
,
datmax
,
datmin
,
1u
,
(
uint8_t
*
)
&
(
counter_val
.
time
.
RTC_Hours
));
RTC_SetTime
(
&
counter_val
.
time
);
}
else
if
(
PageType
==
Page_Time_Minute
)
{
...
...
@@ -241,9 +243,12 @@ void Key_Left_Short_Press(void)
datmax
=
59u
;
datmin
=
0u
;
Menu_u8Data_Updata_Process
(
updataDir
,
datmax
,
datmin
,
1u
,
(
uint8_t
*
)
&
(
counter_val
.
time
.
RTC_Minutes
));
RTC_SetTime
(
&
counter_val
.
time
);
}
else
if
(
PageType
==
Page_Km_Unit
)
{
{
if
(
Get_Dis_KM_Unit
()
==
0
)
{
MenuData
.
KM_Unit
=
1
;
//mile
...
...
@@ -371,10 +376,12 @@ void MenuData_Unit_Init(void)
MenuData
.
KM_Unit
=
0
;
MenuData
.
Tpms_Unit
=
0
;
MenuData
.
Tcs_Val
=
1
;
}
void
MenuData_TCS_Init
(
void
)
{
MenuData
.
Tcs_Val
=
1
;
MenuData
.
Tcs_Val
=
1
;
PageType
=
Page_Menu
;
}
uint8_t
ClearODO_Flag
=
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