-
-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Scroll count calculates wrong time, its a 0.5 more time #122
Comments
i will investigate |
@lubeda , I was thinking, maybe we should add the ability to display it at once to all screens?
|
In calc_scroll_time - https://github.com/lubeda/EspHoMaTriXv2/blob/2023.9.1/components/ehmtxv2/EHMTX_queue.cpp#L703
to
It has gotten better, but there is still a small tail. |
That's the fact, the "next_screen" ist evaluated with a resolution of one second. So the desired effect iss there, but only solvable with a more or less redesign. |
We can try switching from |
thats a "dirty" solution mills() is relative to the time of boot now() is absolut and precise. A better solution would be the number of ticks eg. via counting down |
|
Yes, |
We can use
and
|
Max float value: 3.402823466 E + 38 if we imagine that these are milliseconds, then we will get in years, maximum: |
Strange error on ESP8266, no error on ESP32.
But the same code is used in the ESPHome source code https://github.com/esphome/esphome/blob/dev/esphome/components/host/core.cpp#L17 |
Looks like I did, not sure about working on the 8266 (I can't test) but on the Esp32 (Ulanzi TC001) it works. Not much time has passed, but I have tested almost all modes. @chertvl Can you check? Has your problem been fixed? |
It seems work flawlessly. Indeed what I expected! |
@andrewjswan did it in #131 |
Bug report
Describe the bug
Hi, Lubeda, firstly thank you for great project!
There is some strange bug ive notice:
Somewhy when I call any HA-service to display my long text on Ulanzi, the time of scrolling line calculates wrong.
Line is showing fully, then a little blank space at the end, and then showing one first word of my text again (i think its 24px, not a just first word).
It looks like:
What I need to do to display my long-text notification 1 time only (not 1.5) ?
In my esphome config i have:
scroll_count: 1
With scroll cound 2 i have 2.5 times of running long text.
Additional information
To Reproduce
Steps to reproduce the behavior:
Just a call icon_text or alarm as me, for 1 scroll count, for 1 screen time.
Services calls
There is a little video ive recorded for you.
https://drive.google.com/file/d/1VUK-n22frwMrHPKhwonuQXQiwJ0iN8Mt/view?usp=sharing
The text was updated successfully, but these errors were encountered: