Skip to content
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

UI: battery and USB icons not working properly on DIY #196

Open
andrea-dandrea opened this issue Jan 12, 2025 · 1 comment
Open

UI: battery and USB icons not working properly on DIY #196

andrea-dandrea opened this issue Jan 12, 2025 · 1 comment

Comments

@andrea-dandrea
Copy link

andrea-dandrea commented Jan 12, 2025

I noticed a difference in behaviour of the USB and battery icon among 3 DIY devices I tried:

  1. M5Stick Cplus: the battery and USB icons seem to work of while both on battery and on charge.
  2. M5Stick Cplus2: the USB icon is always on (even with an unconnected device) and the battery icon doesn't show the thunder when on charge.
  3. M5Stack Core2: the USB icon is always on (even with an unconnected device) and the battery icon always shows the thunder, even if on battery.

1 is V1.0.31-71 which I compiled myself; 2 and 3 are V1.0.31-28 from the blockstream FW flasher site.

Because of the difference in version, I downgraded 1 to V1.0.31-28 to check if it would gain the incorrect icon behaviour.
To my surprise, when I downgraded the M5Stick Cplus using the FW flasher site, it retained the initialized status, the settings and the correct icon behaviour it had before.

The issue I'm pointing out is just graphic as far as I can check; I say that because the USB data connection with the M5 devices is not that reliable anyway and I use to go wireless.

@andrea-dandrea andrea-dandrea changed the title UI: battery and USB icons not working properly UI: battery and USB icons not working properly on DIY Jan 12, 2025
@JamieDriver
Copy link
Collaborator

Indeed - some diy devices have no way of getting battery charge or USB-connected information, as it depends on the hardware and the ancillary chips on the board.

From a quick look at the code here, it looks like m5stickcplus should support the full range of power and usb-connected functions.

Similarly looking here, it appears that stickplus2 supports a much smaller subset - yes I can see 'usb_connected' here is fixed at 'true'.

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

No branches or pull requests

2 participants