Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
G
GC_Branch
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
周磊
GC_Branch
Commits
745fbdc6
Commit
745fbdc6
authored
Aug 16, 2018
by
wangjunqiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
div 0 bug
parent
60af091a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
GCModbusSlave.cs
GcDevicePc/Common/GCModbusSlave.cs
+11
-2
No files found.
GcDevicePc/Common/GCModbusSlave.cs
View file @
745fbdc6
...
@@ -144,8 +144,17 @@ namespace GcDevicePc.Common
...
@@ -144,8 +144,17 @@ namespace GcDevicePc.Common
{
{
if
((
ushort
)
SharedSpace
.
Data
.
typesint
==
1
||
(
ushort
)
SharedSpace
.
Data
.
typesint
==
2
)
if
((
ushort
)
SharedSpace
.
Data
.
typesint
==
1
||
(
ushort
)
SharedSpace
.
Data
.
typesint
==
2
)
{
{
value
=
(
ushort
)((
globaldata
.
m_hmibuffer
.
gcinfo
.
batruncount
*
1.0f
)/
if
(
SharedSpace
.
MControl
.
dateend
!=
0
&&
SharedSpace
.
MControl
.
zhouqi
!=
0
)
(
ushort
)(
SharedSpace
.
MControl
.
dateend
/
SharedSpace
.
MControl
.
zhouqi
)*
1000
);
{
value
=
(
ushort
)
((
globaldata
.
m_hmibuffer
.
gcinfo
.
batruncount
*
1.0f
)
/
(
ushort
)
(
SharedSpace
.
MControl
.
dateend
*
1.0f
/
SharedSpace
.
MControl
.
zhouqi
)
*
1000
);
}
else
{
value
=
0
;
}
}
}
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