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
61651c34
Commit
61651c34
authored
Jul 22, 2024
by
郑萍
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
🐞
fix:清零处理条件修改
parent
702f6475
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
GUI_Display.c
Firmware/Source/Application/GUI_Display/GUI_Display.c
+3
-4
No files found.
Firmware/Source/Application/GUI_Display/GUI_Display.c
View file @
61651c34
...
@@ -24,7 +24,7 @@ void TYW_Clear_Eeprom_Service(void)
...
@@ -24,7 +24,7 @@ void TYW_Clear_Eeprom_Service(void)
u8MBMS_StatBattWorkState
=
Get_CAN_CH0_ID_18203220_Sig_MBMS_StatBattWorkState
();
u8MBMS_StatBattWorkState
=
Get_CAN_CH0_ID_18203220_Sig_MBMS_StatBattWorkState
();
u16MMCU_AccumulatedWorkHours
=
Get_CAN_CH0_ID_339_Sig_MMCU_AccumulatedWorkHours
();
u16MMCU_AccumulatedWorkHours
=
Get_CAN_CH0_ID_339_Sig_MMCU_AccumulatedWorkHours
();
u8BMCU_BladeSpeedGear
=
Get_CAN_CH0_ID_157_Sig_BMCU_BladeSpeedGear
();
u8BMCU_BladeSpeedGear
=
Get_CAN_CH0_ID_157_Sig_BMCU_BladeSpeedGear
();
if
((
u8MBMS_StatBattChargeState
==
0x7
)
&&
(
u8MBMS_StatBattWorkState
==
0xf
)
&&
(
u8BMCU_BladeSpeedGear
==
0x7
)
&&
(
u16MMCU_AccumulatedWorkHours
>=
6000
))
if
((
u8MBMS_StatBattChargeState
==
0x7
)
&&
(
u8MBMS_StatBattWorkState
==
0xf
)
&&
(
u8BMCU_BladeSpeedGear
==
0x7
)
&&
(
u16MMCU_AccumulatedWorkHours
>=
6000
0
))
{
{
g_u8TYWClearEepromFlag
=
1
;
g_u8TYWClearEepromFlag
=
1
;
}
}
...
@@ -350,8 +350,8 @@ void Data_CumulativeWorkHours_EEPROM_Write(void)
...
@@ -350,8 +350,8 @@ void Data_CumulativeWorkHours_EEPROM_Write(void)
eeprom_ReadRecord
(
EEPROM_BLOCK_00
,
(
uint8_t
*
)
u32Data_read
,
4
);
eeprom_ReadRecord
(
EEPROM_BLOCK_00
,
(
uint8_t
*
)
u32Data_read
,
4
);
u32Data
[
0
]
=
u32Data_read
[
0
]
-
CumulativeWorkHours_readDiffer
;
u32Data
[
0
]
=
u32Data_read
[
0
]
-
CumulativeWorkHours_readDiffer
;
eeprom_WriteRecord
(
EEPROM_BLOCK_00
,
(
uint8_t
*
)
u32Data
,
4
);
eeprom_WriteRecord
(
EEPROM_BLOCK_00
,
(
uint8_t
*
)
u32Data
,
4
);
CumulativeWorkHours_Writeback
=
CurrentData
;
}
}
CumulativeWorkHours_Writeback
=
CurrentData
;
}
}
}
}
}
}
...
@@ -435,7 +435,6 @@ void Gauge_Service(void)
...
@@ -435,7 +435,6 @@ void Gauge_Service(void)
{
{
SOC_charge_seg_Flag
=
0
;
SOC_charge_seg_Flag
=
0
;
Checkself_Init
();
Checkself_Init
();
Gauge_CAN_setup_Service
();
Gauge_CAN_setup_Service
();
}
}
else
else
...
...
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