GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — Unconditionally update motion by mark9064 · Pull Request #2328 · InfiniTimeOrg/InfiniTime Conversation
|
|
Build size and comparison to main:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Actually we can fix shake wake calibration as well. I'll push a new commit soon |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
what do you mean with "(not notifications)" in your issue description? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
With the existing code, the motion values will be updated if anything is subscribed to notifications on the BLE characteristic, but it won't update it when a characteristic is only read. Sorry that wasn't super clear, I should've specified I meant BLE read/notify |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
3aaa588 to
614440f
Compare
|
Removed the ShouldShakeWake method as a method which just did one comparison felt like overabstracting |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
still looking good |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@geekbozu I remember you mentioned in the pinetime channel that you've got power measurement kit set up, could I take you up on your offer with this PR? :) Testing configuration: digital watchface, sleep notification mode, all wake triggers disabled, BLE off, screen off Looking to know average power consumption in each configuration so we can decide if this PR is feasible No worries at all if you're busy at the moment, just let me know somewhere |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Measurements are complete! Thanks so much taking a look Tim :) With no BLE: Main: 188μA ~= 40d idle I think this is a reasonable sacrifice given the complexity of working around it. In reality most the energy of the battery is consumed by screen on time, and BLE is on, so the impact to real usage is probably no more than 1 day in the worst case and a few hours in most cases. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Going to merge soon unless any other comments :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| // AOD needs motion on to show up to date step counts | ||
| if (state == SystemTaskState::Sleeping && !(settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::RaiseWrist) || | ||
| settingsController.isWakeUpModeOn(Pinetime::Controllers::Settings::WakeUpMode::Shake) || | ||
| motionController.GetService()->IsMotionNotificationSubscribed())) { |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Second I merged I realised this method can be removed... will draft a fixup soon
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Opened #2352
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Step notifications not working Shake calibration doesn't work when sleep mode is enabled InfiniTime sends Steps count from the previous day in some cases Step counter doesn't start on new day
There was an error while loading. Please reload this page.