Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Programmable RF Attenuator
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Programmable RF Attenuator
Commits
54a5d97d
Commit
54a5d97d
authored
Nov 09, 2021
by
Juan David González Cobas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix inconsistent indentation
parent
8a9f8dd6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
10 deletions
+7
-10
liboasis-usb-att.c
software/lib/liboasis-usb-att.c
+7
-10
No files found.
software/lib/liboasis-usb-att.c
View file @
54a5d97d
...
...
@@ -32,12 +32,10 @@ static struct oau_context oau_contexts[OAU_MAX_HANDLES];
static
struct
{
int
r1
,
r2
;
}
oau_relay_mapping
[
OAU_NUM_CHANNELS
]
=
{
{
0
,
1
},
{
2
,
3
},
{
4
,
5
},
{
6
,
7
}
{
0
,
1
},
{
2
,
3
},
{
4
,
5
},
{
6
,
7
}
};
int
oau_att_open
(
char
*
serial
)
...
...
@@ -51,10 +49,9 @@ int oau_att_open(char *serial)
int
fd
=
oau_current_handle
;
oau_current_handle
++
;
if
((
ctx
->
ftdi
=
ftdi_new
())
==
0
)
{
return
-
ENOMEM
;
}
if
((
ctx
->
ftdi
=
ftdi_new
())
==
0
)
{
return
-
ENOMEM
;
}
if
(
serial
)
{
ret
=
ftdi_usb_open_desc
(
ctx
->
ftdi
,
...
...
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