Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Fadecandy
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
scanlime
Fadecandy
Commits
d58f2652
Commit
d58f2652
authored
7 years ago
by
Micah Elizabeth Scott
Browse files
Options
Downloads
Patches
Plain Diff
Add FCSERVER_HAS_WIRINGPI guards in fcserver.cpp
parent
a435deb5
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/src/fcserver.cpp
+4
-1
4 additions, 1 deletion
server/src/fcserver.cpp
with
4 additions
and
1 deletion
server/src/fcserver.cpp
+
4
−
1
View file @
d58f2652
...
@@ -30,8 +30,9 @@
...
@@ -30,8 +30,9 @@
#include
<ctype.h>
#include
<ctype.h>
#include
<iostream>
#include
<iostream>
#ifdef FCSERVER_HAS_WIRINGPI
#include
<wiringPi.h>
#include
<wiringPi.h>
#
include
<wiringPiSPI.h>
#
endif
FCServer
::
FCServer
(
rapidjson
::
Document
&
config
)
FCServer
::
FCServer
(
rapidjson
::
Document
&
config
)
:
mConfig
(
config
),
:
mConfig
(
config
),
...
@@ -281,7 +282,9 @@ void FCServer::usbDeviceLeft(std::vector<USBDevice*>::iterator iter)
...
@@ -281,7 +282,9 @@ void FCServer::usbDeviceLeft(std::vector<USBDevice*>::iterator iter)
bool
FCServer
::
startSPI
()
bool
FCServer
::
startSPI
()
{
{
#ifdef FCSERVER_HAS_WIRINGPI
wiringPiSetup
();
wiringPiSetup
();
#endif
for
(
unsigned
i
=
0
;
i
<
mDevices
.
Size
();
++
i
)
{
for
(
unsigned
i
=
0
;
i
<
mDevices
.
Size
();
++
i
)
{
const
Value
&
device
=
mDevices
[
i
];
const
Value
&
device
=
mDevices
[
i
];
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment