Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
R
RT_RMR42E
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
时昊
RT_RMR42E
Commits
b4fec519
Commit
b4fec519
authored
Jul 14, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:51361 【润通草地车】【累计工作时长】51369 【润通草地车】【绥化测试】【累计工作时长】
parent
2528a9c9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+12
-12
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
b4fec519
...
...
@@ -264,30 +264,30 @@ uint8_t Get_Clockonetime_lenth(void)
return
Clockonetime_flag
;
}
uint16_t
EEPROM_Write_Time
=
0
;
uint32_t
u32Data_read
[
1
]
=
{
0
};
uint32_t
CumulativeWorkHours_Writeback
=
0
;
uint8_t
CumulativeWorkHours_readDiffer
=
0
;
void
Data_CumulativeWorkHours_EEPROM_Write
(
void
)
{
uint32_t
CurrentData
=
0
;
uint32_t
u32Data
[
1
]
=
{
0
};
if
(
DISPLAY_OPEN
)
{
u32Data
[
0
]
=
Get_CAN_Num_MMCU_AccumulatedWorkHours
();
if
(
++
EEPROM_Write_Time
>
6000
)
// 一分钟存一次
{
EEPROM_Write_Time
=
0
;
}
if
(
EEPROM_Write_Time
==
0
)
CurrentData
=
Get_CAN_Num_MMCU_AccumulatedWorkHours
();
if
(
CurrentData
>
CumulativeWorkHours_Writeback
)
{
CumulativeWorkHours_readDiffer
=
CurrentData
-
CumulativeWorkHours_Writeback
;
eeprom_ReadRecord
(
EEPROM_BLOCK_00
,
(
uint8_t
*
)
u32Data_read
,
4
);
u32Data
[
0
]
=
u32Data_read
[
0
]
+
CumulativeWorkHours_readDiffer
;
eeprom_WriteRecord
(
EEPROM_BLOCK_00
,
(
uint8_t
*
)
u32Data
,
4
);
CumulativeWorkHours_Writeback
=
CurrentData
;
}
}
else
{
EEPROM_Write_Time
=
0
;
}
}
uint32_t
u32Data_read
[
1
]
=
{
0
};
void
Gauge_Clock_All_Display
(
void
)
{
eeprom_ReadRecord
(
EEPROM_BLOCK_00
,
(
uint8_t
*
)
u32Data_read
,
4
);
if
(
DISPLAY_OPEN
)
{
...
...
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