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

[Platform] update-state-progress always return null #22481

Closed
bpetersen-grundfos opened this issue Sep 8, 2022 · 0 comments · Fixed by #22502
Closed

[Platform] update-state-progress always return null #22481

bpetersen-grundfos opened this issue Sep 8, 2022 · 0 comments · Fixed by #22502

Comments

@bpetersen-grundfos
Copy link

Reproduction steps

1. Run TC-SU-4.1 and step 9 will fail update-state-progress always return null

Writing value to mParams.totalFileBytes when OTA header received is missing

Platform

cc13x2_cc26x2

Platform Version(s)

No response

Type

Manually tested with SDK

(Optional) If manually tested please explain why this is only manually tested

Found in SVE2

Anything else?

from OTAImageProcessor.h

     * Called to check the current download status of the OTA image download.
     */
    virtual app::DataModel::Nullable<uint8_t> GetPercentComplete()
    {
        return mParams.totalFileBytes > 0
            ? app::DataModel::Nullable<uint8_t>(static_cast<uint8_t>((mParams.downloadedBytes * 100) / mParams.totalFileBytes))
            : app::DataModel::Nullable<uint8_t>{};
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants