Skip to content

Commit

Permalink
Fix comma last position
Browse files Browse the repository at this point in the history
  • Loading branch information
Ludy87 committed Jul 7, 2019
1 parent 218f4d6 commit adbccd2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions _tools/u8glib/converter.js
Original file line number Diff line number Diff line change
Expand Up @@ -317,11 +317,11 @@ var bitmap_converter = function() {
* Print the data as hex or binary,
* appending ASCII art if selected.
*/
var lastx = iw - 8 - (iw % 8); // last item in each line
var lastx = iw - (iw % 8); // last item in each line
for (var y = 0; y < ih; y++) { // loop Y
var bitline = ' // ';
cpp += ' ';
for (var x = 0; x < iw; x += 8) { // loop X
for (var x = 0; x <= iw; x += 8) { // loop X
var byte = 0;
for (var b = 0; b < 8; b++) { // loop 8 bits
var xx = x + b, i = y * iw + xx,
Expand Down
4 changes: 2 additions & 2 deletions _tools/u8glib/converter2.js
Original file line number Diff line number Diff line change
Expand Up @@ -344,13 +344,13 @@ var bitmap_converter = function() {
* Print the data as hex or binary,
* appending ASCII art if selected.
*/
var lastx = iw - 8 - (iw % 8); // last item in each line
var lastx = iw - (iw % 8); // last item in each line
console.log('iw is ' + iw);
console.log('last is ' + lastx);
for (var y = 0; y < ih; y++) { // loop Y
var bitline = ' // ';
cpp += ' ';
for (var x = 0; x < iw; x += 8) { // loop X
for (var x = 0; x <= iw; x += 8) { // loop X
var byte = 0;
for (var b = 0; b < 8; b++) { // loop 8 bits
var xx = x + b, i = y * iw + xx,
Expand Down

0 comments on commit adbccd2

Please sign in to comment.