-
-
Notifications
You must be signed in to change notification settings - Fork 329
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #112 from daniellasry/fix-ganglion
Fixing segfault when streaming ganglion on ubuntu
- Loading branch information
Showing
4 changed files
with
16 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// Bluegiga’s Bluetooth Smart Demo Application | ||
// Bluegiga�s Bluetooth Smart Demo Application | ||
// Contact: [email protected]. | ||
// | ||
// This is free software distributed under the terms of the MIT license reproduced below. | ||
|
@@ -179,7 +179,7 @@ int uart_tx (int len, unsigned char *data) | |
return -1; | ||
} | ||
len -= written; | ||
data += len; | ||
data += written; | ||
} | ||
|
||
return 0; | ||
|
@@ -213,7 +213,7 @@ int uart_rx (int len, unsigned char *data, int timeout_ms) | |
return 0; | ||
} | ||
len -= rread; | ||
data += len; | ||
data += rread; | ||
} | ||
|
||
return l; | ||
|
@@ -296,7 +296,7 @@ int uart_tx (int len, unsigned char *data) | |
return -1; | ||
} | ||
len -= written; | ||
data += len; | ||
data += written; | ||
} | ||
|
||
return 0; | ||
|
@@ -325,7 +325,7 @@ int uart_rx (int len, unsigned char *data, int timeout_ms) | |
return -1; | ||
} | ||
len -= rread; | ||
data += len; | ||
data += rread; | ||
} | ||
|
||
return l; | ||
|