Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
osie
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Martin Manchev
osie
Commits
ee6b6bc3
Commit
ee6b6bc3
authored
Mar 01, 2023
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Plain Diff
Set actual value.
See merge request
!26
parents
17409606
f23ac251
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
coupler/keep_alive_subscriber.h
coupler/keep_alive_subscriber.h
+2
-0
No files found.
coupler/keep_alive_subscriber.h
View file @
ee6b6bc3
...
@@ -56,6 +56,8 @@ static int setGPIO() {
...
@@ -56,6 +56,8 @@ static int setGPIO() {
if
(
CURRENT_GPIO_STATE
)
CURRENT_GPIO_STATE
=
0
;
if
(
CURRENT_GPIO_STATE
)
CURRENT_GPIO_STATE
=
0
;
else
CURRENT_GPIO_STATE
=
1
;
else
CURRENT_GPIO_STATE
=
1
;
// set actual GPI value
data
.
values
[
0
]
=
CURRENT_GPIO_STATE
;
if
(
ioctl
(
led
.
fd
,
GPIOHANDLE_SET_LINE_VALUES_IOCTL
,
&
data
)
<
0
)
if
(
ioctl
(
led
.
fd
,
GPIOHANDLE_SET_LINE_VALUES_IOCTL
,
&
data
)
<
0
)
perror
(
"Error setting GPIO to 1"
);
perror
(
"Error setting GPIO to 1"
);
...
...
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