Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DSerial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
apps
DSerial
Commits
c2a4fa31
Commit
c2a4fa31
authored
9 years ago
by
Isabella Skořepová
Browse files
Options
Downloads
Patches
Plain Diff
Fixed disappearing messages
parent
6bf438a9
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
dserial-cli/src/dbus-serial-client.vala
+7
-2
7 additions, 2 deletions
dserial-cli/src/dbus-serial-client.vala
with
7 additions
and
2 deletions
dserial-cli/src/dbus-serial-client.vala
+
7
−
2
View file @
c2a4fa31
...
...
@@ -24,6 +24,8 @@ namespace Serial {
[DBus (name = "info.skorepa.DSerial1.port")]
private
interface
Methods
:
GLib
.
Object
{
[
DBus
(
name
=
"Write"
)]
public
abstract
void
write_sync
(
uint8
[]
msg
)
throws
IOError
;
public
abstract
async
void
write
(
uint8
[]
msg
)
throws
IOError
;
public
abstract
void
open
()
throws
IOError
;
public
abstract
void
close
()
throws
IOError
;
...
...
@@ -304,8 +306,11 @@ public class SerialClient : GLib.Object {
/*=====================================
* Message sender
*=====================================*/
public
void
write
(
uint8
[]
msg
)
{
methods
.
write
.
begin
(
msg
,()=>{});
public
void
write
(
uint8
[]
msg
,
bool
asynchronous
=
false
)
{
if
(
asynchronous
)
methods
.
write
.
begin
(
msg
,()=>{});
else
try
{
methods
.
write_sync
(
msg
);
}
catch
(
Error
e
)
{}
}
/*=====================================
...
...
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