Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
1d6f8f1d
Commit
1d6f8f1d
authored
Nov 08, 2013
by
Jeroen Vreeken
Browse files
Small fixes
parent
319c16f7
Changes
3
Hide whitespace changes
Inline
Side-by-side
common/trace/trace_tcp.c
View file @
1d6f8f1d
...
...
@@ -212,8 +212,7 @@ int trace_packet_write(struct trace *trace, struct trace_pkt *pkt)
r
=
write
(
trace
->
fd
,
seq
,
2
);
if
(
r
!=
2
)
goto
err_write
;
}
if
(
i
==
pkt
->
len
-
1
)
{
}
else
if
(
i
==
pkt
->
len
-
1
)
{
r
=
write
(
trace
->
fd
,
pkt
->
data
+
start
,
i
-
start
+
1
);
if
(
r
!=
i
-
start
+
1
)
goto
err_write
;
...
...
console/console/console_j2000tracker.c
View file @
1d6f8f1d
...
...
@@ -548,7 +548,7 @@ int main(int argc, char **argv)
tv
.
tv_sec
=
1
;
tv
.
tv_usec
=
0
;
select
(
high
,
&
fdset_rx
,
NULL
,
NULL
,
&
tv
);
select
(
high
+
1
,
&
fdset_rx
,
NULL
,
NULL
,
&
tv
);
trace_handle
(
traceval_az
,
&
fdset_rx
);
trace_handle
(
traceval_el
,
&
fdset_rx
);
...
...
controller/controller/controller_trace.c
View file @
1d6f8f1d
...
...
@@ -94,6 +94,7 @@ struct trace_hdl {
struct
controller_trace
ctrace
;
union
controller_trace_value
last
;
union
controller_trace_value
buffer
[
TRACE_LEN
];
bool
valuesend
;
};
static
int
nr_trace_hdl
;
...
...
@@ -227,9 +228,10 @@ static void *controller_trace_handle(void *arg)
trace_hdl
[
i
].
last
.
u32
=
bufval
;
break
;
}
if
(
bufval
!=
last
)
{
if
(
bufval
!=
last
||
!
trace_hdl
[
i
].
valuesend
)
{
sendtime
=
true
;
sendval
=
true
;
trace_hdl
[
i
].
valuesend
=
true
;
}
}
...
...
@@ -431,6 +433,7 @@ static void *controller_trace_server(void *arg)
trace_hdl
[
i
].
added
=
false
;
trace_hdl
[
i
].
type
=
TRACE_INTERVAL_TYPE_INTERVAL
;
trace_hdl
[
i
].
nsec
=
-
1
;
trace_hdl
[
i
].
valuesend
=
false
;
trace_hdl
[
i
].
free
=
0
;
break
;
...
...
Write
Preview
Supports
Markdown
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