We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2508703 + e52e06e commit 7beb08bCopy full SHA for 7beb08b
.github/workflows/build.yml
@@ -2,13 +2,9 @@ name: Build
2
3
on:
4
push:
5
- branches:
6
- - 'master'
7
- tags:
8
- - '*'
+ pull_request:
9
schedule:
10
- cron: '40 4 * * *' # every day at 4:40
11
- pull_request:
12
13
jobs:
14
test:
src/port.rs
@@ -86,6 +86,14 @@ impl SerialPort {
86
}
87
88
89
+ /// Sends a raw byte on the serial port, intended for binary data.
90
+ pub fn send_raw(&mut self, data: u8) {
91
+ unsafe {
92
+ wait_for!(self.line_sts().contains(LineStsFlags::OUTPUT_EMPTY));
93
+ self.data.write(data);
94
+ }
95
96
+
97
/// Receives a byte on the serial port.
98
pub fn receive(&mut self) -> u8 {
99
unsafe {
0 commit comments