gabonator / DS203

DS203 quad oscilloscope firmware compatible with gcc
http://www.valky.eu/?data/hardware/ds203.txt
289 stars 86 forks source link

Extra content at end of SVG file #20

Open kroll-j opened 11 years ago

kroll-j commented 11 years ago

Hi there!

I exported an SVG and my image viewer says "WAVE000.SVG: Extra content at the end of the document". The end of the file looks like this:

]]></script>
</svg>
vgDo

After removing the trailing 'vgDo' string, the file loads fine. (Displaying the value under the cursor in the SVG is a great feature btw!)

gabonator commented 11 years ago

seems like there is problem with writing buffer. The letters "vgDo" are probably coming from "svgDocument" string that was previously stored in the write buffer and when it was flushing it onto eeprom, it stored 4 extra bytes from this buffer. I will check it during this weekend... And thank you for reporting this issue! Anyway, what viewer do you use for svg files?

gabonator commented 11 years ago

I tried exporting the SVG file multiple times, but my files looked fine:

0000015640: 30 2C 20 32 32 33 29 20 | 2B 20 22 20 22 20 2B 20  0, 223) + " " +
0000015650: 66 6D 74 54 28 78 2C 20 | 30 2E 30 31 39 29 3B 0A  fmtT(x, 0.019);◙
0000015660: 7D 0A 5D 5D 3E 3C 2F 73 | 63 72 69 70 74 3E 0A 3C  }◙]]></script>◙<
0000015670: 2F 73 76 67 3E 0A       |                          /svg>◙

So it is probably problem of the internal FAT implementation. Have you installed the alterbios from Petteri Aimonen? This should fix the FAT related bugs, you can find it here: https://github.com/PetteriAimonen/AlterBIOS

kroll-j commented 11 years ago

Hey, thanks for looking into the problem. Yes, I have AlterBIOS version 0.3 installed. Strange.