Skip to content

extmod/nimble: Remove asserts of ediv_rand_present and adjust comments. #16120

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

Merged

Conversation

dpgeorge
Copy link
Member

Summary

Recent versions of NimBLE (since release 1.6.0) removed this variable; see apache/mynewt-nimble@7cc8c08.

We never used it except in an assert, so remove those asserts to make the code compatible with newer NimBLE versions (eg for the esp32 port).

Testing

Not tested on hardware, but I verified that the PYBD-SF6 firmware (which uses NimBLE) is binary equivalent before and after this commit (except for the change in git hash stored in the firmware).

@dpgeorge dpgeorge added the extmod Relates to extmod/ directory in source label Oct 31, 2024
@dpgeorge
Copy link
Member Author

@DvdGiessen this follows pretty much your patch.

Copy link

codecov bot commented Oct 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.57%. Comparing base (919756c) to head (d278ba5).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master   #16120   +/-   ##
=======================================
  Coverage   98.57%   98.57%           
=======================================
  Files         164      164           
  Lines       21345    21345           
=======================================
  Hits        21041    21041           
  Misses        304      304           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Code size report:

   bare-arm:    +0 +0.000% 
minimal x86:    +0 +0.000% 
   unix x64:    +0 +0.000% standard
      stm32:    +0 +0.000% PYBV10
     mimxrt:    +0 +0.000% TEENSY40
        rp2:    +0 +0.000% RPI_PICO_W
       samd:    +0 +0.000% ADAFRUIT_ITSYBITSY_M4_EXPRESS
  qemu rv32:    +0 +0.000% VIRT_RV32

@dpgeorge dpgeorge requested a review from projectgus November 4, 2024 02:30
Copy link
Contributor

@projectgus projectgus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I think I understand the linked NimBLE commit well enough to say that. 😁

@dpgeorge
Copy link
Member Author

dpgeorge commented Nov 5, 2024

I think I understand the linked NimBLE commit well enough to say that.

I also had the same thought 😄

Recent versions of NimBLE (since release 1.6.0) removed this variable; see
apache/mynewt-nimble@7cc8c08.

We never used it except in an assert, so remove those asserts to make the
code compatible with newer NimBLE versions (eg for the esp32 port).

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the extmod-nimble-remove-ediv-rand-present branch from eae9072 to d278ba5 Compare November 5, 2024 00:27
@dpgeorge dpgeorge merged commit d278ba5 into micropython:master Nov 5, 2024
62 checks passed
@dpgeorge dpgeorge deleted the extmod-nimble-remove-ediv-rand-present branch November 5, 2024 00:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
extmod Relates to extmod/ directory in source
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants