summaryrefslogtreecommitdiff
path: root/2005
diff options
context:
space:
mode:
authorhaller2005-04-20 15:43:43 +0000
committerhaller2005-04-20 15:43:43 +0000
commit8702e07f7300651fd9fccafa23b10dd23c129829 (patch)
tree7ccbe55cb618e9a4f5c5398e8037f975bc6ae534 /2005
parentd4d957c826c80f8f730ba896cca78dc2da862762 (diff)
Changement de la commande recu dans la frame d'erreur recu de l'AVR (e->?)
Diffstat (limited to '2005')
-rw-r--r--2005/i/robert/src/proto/proto.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/2005/i/robert/src/proto/proto.cc b/2005/i/robert/src/proto/proto.cc
index 1246956..828847c 100644
--- a/2005/i/robert/src/proto/proto.cc
+++ b/2005/i/robert/src/proto/proto.cc
@@ -219,7 +219,7 @@ Proto::getFrame(void)
switch(revState_)
{
case 1:
- if (!isalpha (receivedChar) || receivedChar == 'e')
+ if (!isalpha (receivedChar) || receivedChar == '?')
erreur = true;
else
{
@@ -245,9 +245,6 @@ Proto::getFrame(void)
{
currentFrame_.args.back() |= static_cast<uint8_t>(d);
revState_ = 2;
- // Si on reçoit 0xff comme argument, erreur
- if(currentFrame_.args.back() == 0xff)
- erreur = true;
break;
}
}