fix : version bit : was char instead of bool

This commit is contained in:
wphiphi 2022-01-04 15:36:17 +01:00 committed by GitHub
parent bfe213af7a
commit 3231700a78
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -132,9 +132,9 @@ function add_version_info(t, version){
x=0;
for(let i = 17 - step; i>=0 ; i -= 3){
// Bottom Left
draw_square(t, 4*version + 6 + step, x ,1, version_information_table[version - 7].toString().split("")[i]);
draw_square(t, 4*version + 6 + step, x ,1, BLACK_COLOR * parseInt(version_information_table[version - 7].toString().split("")[i]));
// Top Right
draw_square(t, x, 4*version + 6 + step ,1, version_information_table[version - 7].toString().split("")[i]);
draw_square(t, x, 4*version + 6 + step ,1, BLACK_COLOR * parseInt(version_information_table[version - 7].toString().split("")[i]));
x++;
}