Skip to content

Fix GMC-800 history flash size#134

Merged
Wikilicious merged 2 commits into
Wikilicious:masterfrom
anatoly-scherbakov:fix-gmc800-history-size
May 27, 2026
Merged

Fix GMC-800 history flash size#134
Wikilicious merged 2 commits into
Wikilicious:masterfrom
anatoly-scherbakov:fix-gmc800-history-size

Conversation

@anatoly-scherbakov

@anatoly-scherbakov anatoly-scherbakov commented May 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • set GMC-800 history flash size to 2 MiB
  • add a regression test for the GMC-800 flash memory size

Why

GMC-800 history reads currently inherit the base 1 MiB flash size, causing get_raw_history() to stop before current records on devices with 2 MiB history memory.

Verification

  • python -m pytest tests/test_gmc800.py tests/test_devices/test_gmc800.py tests/test_device_get_history.py
  • Tested against a physical GMC-800: patched get_raw_history() read 2,080,768 bytes and parsed records through current-day data.

@anatoly-scherbakov anatoly-scherbakov force-pushed the fix-gmc800-history-size branch from ba0d11b to 384c2d3 Compare May 14, 2026 19:02
@Wikilicious

Copy link
Copy Markdown
Owner

Hey @anatoly-scherbakov,
Thanks for the PR, documented summary, and tests!
I like to add contributors to the README.md (https://github.com/Wikilicious/pygmc#contributors)
You can update your PR to include yourself or just reply and I'll add it.
Thanks again!

@anatoly-scherbakov

Copy link
Copy Markdown
Contributor Author

Done, thank you @Wikilicious!

@Wikilicious

Copy link
Copy Markdown
Owner

I plan to merge this... then release a semver patch version on pypi

@Wikilicious Wikilicious merged commit cfbec20 into Wikilicious:master May 27, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants