Skip to content

Commit

Permalink
Patched wrong two wrong recursive calls in CODE128
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Mar 24, 2016
1 parent 01c317e commit 41d8190
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions barcodes/CODE128.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ function CODE128(string) {
// Remove first element
bytes.shift();

next = nextB(bytes, depth + 1);
next = nextA(bytes, depth + 1);
}

// Get the correct binary encoding and calculate the weight
Expand Down Expand Up @@ -138,7 +138,7 @@ function CODE128(string) {
}
// Continue on CODE128B but encode a special character
else{
next = nextC(bytes, depth + 1);
next = nextB(bytes, depth + 1);
}
}
// Continue encoding of CODE128B
Expand Down

0 comments on commit 41d8190

Please sign in to comment.