bmwcarit / python-dlt

python-dlt is a thin Python ctypes wrapper around libdlt functions
Mozilla Public License 2.0
34 stars 29 forks source link

doc: fix example of DLTFile #60

Closed takeoverjp closed 1 year ago

takeoverjp commented 1 year ago

Thanks for the useful package!

I've encountered little trouble that counter_total was 0 when I tried python-dlt based on README example.

It's because the example doesn't call generate_index(). I know it's called implicitly in almost cases. But the example reads counter_total immediately after load therefore I think we need to call generate_index() explicitly in this case.

In addition, I've fixed tiny typo ("loading") in this PR.

yen3 commented 1 year ago

Thank you for the fix!