let's try, uh, this
This commit is contained in:
parent
e28e749c36
commit
4aab8066bb
|
@ -48,9 +48,9 @@ fn main() {
|
|||
Ok(_) => (),
|
||||
};
|
||||
for i in 0..8 {
|
||||
let payload:[u8;4] = match ibuffer[0] & (0x80 >> i) != 0x00 {
|
||||
true => [0x80,0xFF,0x80,0x00],
|
||||
false => [0xFF,0x80,0x00,0x80],
|
||||
let payload:[u8;6] = match ibuffer[0] & (0x80 >> i) != 0x00 {
|
||||
true => [0x80,0x80,0xFF,0x80,0x00,0x80],
|
||||
false => [0x80,0xFF,0x80,0x00,0x80,0x80],
|
||||
};
|
||||
match iooutput.write_all(&payload) {
|
||||
Err(why) => {
|
||||
|
|
Loading…
Reference in New Issue