Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
ionpump
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs
ds
ionpump
Compare revisions
2f9df3b698a4524c252c6c09232c8bde79daa606 to c27688838e05b80b7d89af4394560e7aae2a56cf
Compare revisions
Changes are shown as if the
source
revision was being merged into the
target
revision.
Learn more about comparing revisions.
Source
cs/ds/ionpump
Select target project
No results found
c27688838e05b80b7d89af4394560e7aae2a56cf
Select Git revision
Swap
Target
cs/ds/ionpump
Select target project
cs/ds/ionpump
1 result
2f9df3b698a4524c252c6c09232c8bde79daa606
Select Git revision
Show changes
Only incoming changes from source
Include changes to target since source was created
Compare
Commits on Source (1)
Remove build warning about buffer length for sprintf()
· c2768883
Alessio Igor Bogani
authored
3 years ago
c2768883
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/Ionpump.cpp
+4
-4
4 additions, 4 deletions
src/Ionpump.cpp
src/Ionpump.h
+1
-1
1 addition, 1 deletion
src/Ionpump.h
with
5 additions
and
5 deletions
src/Ionpump.cpp
View file @
c2768883
...
...
@@ -204,7 +204,7 @@ void Ionpump::always_executed_hook()
* bit 7 = cable interlock (1 = active)
*/
char
mask
[
1
2
];
char
mask
[
1
4
];
std
::
stringstream
s
;
sprintf
(
mask
,
"StatMask%d"
,
channel
);
...
...
@@ -269,7 +269,7 @@ void Ionpump::read_Pressure(Tango::Attribute &attr)
/*----- PROTECTED REGION ID(Ionpump::read_Pressure) ENABLED START -----*/
double
pressure
;
char
mask
[
1
2
];
char
mask
[
1
4
];
sprintf
(
mask
,
"Pressure%d"
,
channel
);
string
press_attr
(
mask
);
...
...
@@ -317,7 +317,7 @@ void Ionpump::read_Voltage(Tango::Attribute &attr)
/*----- PROTECTED REGION ID(Ionpump::read_Voltage) ENABLED START -----*/
double
voltage
;
char
mask
[
1
2
];
char
mask
[
1
3
];
sprintf
(
mask
,
"Voltage%d"
,
channel
);
string
volt_attr
(
mask
);
...
...
@@ -354,7 +354,7 @@ void Ionpump::read_Current(Tango::Attribute &attr)
/*----- PROTECTED REGION ID(Ionpump::read_Current) ENABLED START -----*/
double
current
;
char
mask
[
1
2
];
char
mask
[
1
3
];
sprintf
(
mask
,
"Current%d"
,
channel
);
string
curr_attr
(
mask
);
...
...
This diff is collapsed.
Click to expand it.
src/Ionpump.h
View file @
c2768883
...
...
@@ -182,7 +182,7 @@ public:
// Additional Method prototypes
protected
:
Tango
::
DeviceProxy
*
devps
;
// dual device server
short
channel
;
unsigned
short
channel
;
string
psname
;
/*
...
...
This diff is collapsed.
Click to expand it.