Skip to content
Snippets Groups Projects
Commit 3152b082 authored by whooie's avatar whooie
Browse files

Merge branch 'master' of gitlab-uiuc:whuie2/moglabs-control

forgot to pull before pushing
parents a9a7b39a 32b8a841
No related branches found
No related tags found
No related merge requests found
......@@ -238,7 +238,7 @@ impl MOGDriver {
/// the response is an error message from the device. Leading and trailing
/// whitespace characters are removed.
pub fn ask(&mut self, cmd: &str) -> MOGResult<String> {
self.flush()?;
// self.flush()?;
self.send(cmd)?;
let response: String = self.recv()?;
return if response.starts_with("ERR:") {
......@@ -251,7 +251,7 @@ impl MOGDriver {
/// Like [`ask`][Self::ask], but for a command that returns a binary
/// response.
pub fn ask_bin(&mut self, cmd: &str) -> MOGResult<Vec<u8>> {
self.flush()?;
// self.flush()?;
self.send(cmd)?;
let head: Vec<u8> = self.recv_raw(4)?;
if head == b"ERR:" {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment