summaryrefslogtreecommitdiff
path: root/2005/i/robert/src/proto
diff options
context:
space:
mode:
Diffstat (limited to '2005/i/robert/src/proto')
-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;
}
}