Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: tools/battor_agent/battor_agent.h

Issue 1991403002: [battor agent] Fix the init sequence so it retries inits instead of resets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed comment Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | tools/battor_agent/battor_agent.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/battor_agent/battor_agent.h
diff --git a/tools/battor_agent/battor_agent.h b/tools/battor_agent/battor_agent.h
index 3c6c77d170e1eabeb90e68feb871b8654fe7a8cb..810df26936af2cf15d4c72845937aa7fac8da676 100644
--- a/tools/battor_agent/battor_agent.h
+++ b/tools/battor_agent/battor_agent.h
@@ -94,7 +94,6 @@ class BattOrAgent : public BattOrConnection::Listener,
REQUEST_CONNECTION,
// Actions required for starting tracing.
- SEND_RESET,
SEND_INIT,
READ_INIT_ACK,
SEND_SET_GAIN,
@@ -173,6 +172,9 @@ class BattOrAgent : public BattOrConnection::Listener,
// we receive frames in order.
uint32_t next_sequence_number_;
+ // The number of times we've attempted to init the BattOr.
+ uint8_t num_init_attempts_;
+
// The number of times that we've attempted to read the last message.
uint8_t num_read_attempts_;
« no previous file with comments | « no previous file | tools/battor_agent/battor_agent.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698