Skip to content

Commit 04bf977

Browse files
committed
VIP: Correcting a conditionla where header not accepted
and first zero is yet to be found.
1 parent 8acc84e commit 04bf977

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

DebugManchester.ino

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ void loop(){
122122
}//end of dealing with ones
123123
else{ //bitState==0 could first error, first zero or packet
124124
// if it is header there must be no "zeroes" or errors
125-
if(headerHits<headerBits){
125+
if((headerHits<headerBits)&&(!firstZero)){
126126
//Still in header checking phase, more header hits required
127127
noErrors=false;//landing here means header is corrupted, so it is probably an error
128128
}//end of detecting a "zero" inside a header

0 commit comments

Comments
 (0)