dump to text support for show_Grey button

This commit is contained in:
wphiphi 2022-01-04 15:34:18 +01:00 committed by GitHub
parent 39088a3d91
commit bfe213af7a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -305,7 +305,7 @@ function dump_qr_array() {
let sz = qr_array.length; let sz = qr_array.length;
dump_qr = ""; dump_qr = "";
for(let i=0;i<sz;i++) { for(let i=0;i<sz;i++) {
let line = qr_array[i].map(x => x===1 ? 'X' : '_').join(''); let line = qr_array[i].map(x => ( x===1 ? '#' : ( x===0 ? '_' : ( show_grey ? '?' : '_' ) ) ) ).join('');
console.log(line); console.log(line);
dump_qr += line + "\n" dump_qr += line + "\n"
} }