Closed DE-cr closed 1 year ago
No worries, I don't think that many people have downloaded the current version (release 3.0 is not affected), so no need to write a conversion script, people will just have to do /D0 then.
Can you please run the sketch provided above on Arduino, to confirm that the hex numbers in its output are all in ascending order?
Should you still want the script to re-build datalog.idx from datalog.txt offline, it's in my bsb-lan fork.
This is the output of the script:
31.12.1999 => 0x07CF0C1F
01.01.2000 => 0x07D00101
31.12.2022 => 0x07E60C1F
01.01.2023 => 0x07E70101
11.12.2047 => 0x07FF0C0B
01.02.2048 => 0x08000201
31.12.9999 => 0x270F0C1F
Is it ok so that I can merge this fix?
Taking your thumbs-up as a yes ;)...
Thanks for doing the test on Arduino!
I am so sorry that I didn't catch this before https://github.com/fredlcore/BSB-LAN/pull/542 was merged! I thought I had done enough testing then, but as it turns out, I should have used the target platform for that, not some other little-endian system. :/
Before merging, could you please run the following sketch on an Arduino and check if the hex numbers in its output are all in ascending order? (I've done this test for esp32.)
If you wish, I can provide a script to re-build datalog.idx offline. I've used that myself to avoid /D0 after applying the fix described here, as follows:
wget -qOdatalog.txt bsb-lan/D
)