Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: multicoder9/micropython-lib
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 96e17b6
Choose a base ref
...
head repository: micropython/micropython-lib
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 68e0dfc
Choose a head ref
  • 18 commits
  • 50 files changed
  • 10 contributors

Commits on Apr 10, 2025

  1. umqtt.simple: Restore legacy ssl/ssl_params arguments.

    Commit 35d41db changed the API for using
    SSL with umqtt, but only did a minor version increase.  This broke various
    uses of this library, eg
    https://github.com/aws-samples/aws-iot-core-getting-started-micropython
    
    Reinstate the original API for specifying an SSL connection.  This library
    now supports the following:
    - default, ssl=None or ssl=False: no SSL
    - ssl=True and optional ssl_params specified: use ssl.wrap_socket
    - ssl=<SSLContext instance>: use provided SSL context to wrap socket
    
    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    98d0a2b View commit details
    Browse the repository at this point in the history
  2. nrf24l01: Increase startup delay.

    According to the datasheet of the NRF240L1 chip, 150 μs startup time is
    only acceptable when the chip is clocked externally.  Most modules use a
    crystal, which require 1.5 ms to settle.  It should be okay to wait more in
    both cases, for a reliable startup.
    
    Signed-off-by: Marcell Pünkösd <punkosdmarcell@rocketmail.com>
    marcsello authored and dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    3e859d2 View commit details
    Browse the repository at this point in the history
  3. nrf24l01: Properly handle timeout.

    The timeout condition was not handled before.  Upon timeout, this caused
    the chip to stay active until another send command changed it's state.
    
    Sometimes when it was unable to transmit the data, it got stuck in the tx
    fifo causing it to fill up over time, which set the TX_FULL flag in the
    STATUS register.
    
    Since there was no exceptions raised, the user code could not differentiate
    a successful send or a timeout condition.
    
    Signed-off-by: Marcell Pünkösd <punkosdmarcell@rocketmail.com>
    marcsello authored and dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    bd1ab77 View commit details
    Browse the repository at this point in the history
  4. nrf24l01: Optimize status reading.

    The value of the STATUS register is always transmitted by the chip when
    reading any command.  So a R_REGISTER command and the turnaround time can
    be spared by issuing a NOP command instead.
    
    This implementation suggested by the datasheet.
    
    This operation is compatible with both nRF24L01 and nRF24L01+.
    
    Signed-off-by: Marcell Pünkösd <punkosdmarcell@rocketmail.com>
    marcsello authored and dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    c7103bb View commit details
    Browse the repository at this point in the history
  5. nrf24l10: Bump minor version.

    Due to the previous three commits.
    
    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    221a877 View commit details
    Browse the repository at this point in the history
  6. lora-sx126x: Fix invert_iq_rx / invert_iq_tx behaviour.

    This commit fixes a typo and changes a tuple that needs to be mutable to a
    list (because other parts of the code change elements of this list).
    
    Signed-off-by: Damien George <damien@micropython.org>
    barnslig authored and dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    f72f3f1 View commit details
    Browse the repository at this point in the history
  7. unix-ffi/json: Accept both str and bytes as arg for json.loads().

    Same as micropython's internal json lib does.
    
    Fixes micropython#985.
    
    Signed-off-by: Dominik Heidler <dheidler@suse.de>
    asdil12 authored and dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    d1a7436 View commit details
    Browse the repository at this point in the history
  8. unix-ffi/machine: Use libc if librt is not present.

    Newer implementations of libc integrate the functions from librt, for
    example glibc since 2.17 and uClibc-ng.  So if the librt.so cannot be
    loaded, it can be assumed that libc contains the expected functions.
    
    Signed-off-by: Bas van Doren <basvdoren@gmail.com>
    basvd authored and dpgeorge committed Apr 10, 2025
    Configuration menu
    Copy the full SHA
    42caaf1 View commit details
    Browse the repository at this point in the history

Commits on Apr 12, 2025

  1. requests: Use the host in the redirect url, not the one in headers.

    The host in headers extracted from the original url may not be the same as
    the host in the redirect url.  Poping out the host in headers force the
    code to use the host in the redirect url, otherwise the redirect may fail
    due to inconsistence of hosts in the original url and the redirect url.
    
    Signed-off-by: 黃昕暐 <meebox@gmail.com>
    codemee authored and dpgeorge committed Apr 12, 2025
    Configuration menu
    Copy the full SHA
    43ad7c5 View commit details
    Browse the repository at this point in the history
  2. aiohttp: Fix header case sensitivity.

    According to RFC https://datatracker.ietf.org/doc/html/rfc7230#section-3.2
    header names are case-insensitive.
    
    This commit makes sure that the module behaves consistently regardless of
    the casing of "Content-type" and "Content-Length" (other headers are not
    considered by the module).
    
    Without this fix, the client seems to wait for the connection termination
    (~10 seconds) prior to returning any content if the casing of
    "Content-Length" is different.
    
    Signed-off-by: FuNK3Y <fun__key@hotmail.com>
    FuNK3Y authored and dpgeorge committed Apr 12, 2025
    Configuration menu
    Copy the full SHA
    86df723 View commit details
    Browse the repository at this point in the history
  3. aiohttp: Allow headers to be passed to a WebSocketClient.

    This commit will make it possible to add headers to a Websocket.
    
    Among other things, this allows making a connection to online MQTT brokers
    over websocket, using the header entry "Sec-WebSocket-Protocol":"mqtt" in
    the handshake of the upgrade protocol.
    
    Signed-off-by: Damien George <damien@micropython.org>
    jomasnash authored and dpgeorge committed Apr 12, 2025
    Configuration menu
    Copy the full SHA
    05a56c3 View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2025

  1. usb-device-cdc: Optimise writing small data so it doesn't require alloc.

    Only allocate a memoryview when the (first) write was partial.
    
    Signed-off-by: Matthias Urlichs <matthias@urlichs.de>
    smurfix authored and dpgeorge committed Apr 13, 2025
    Configuration menu
    Copy the full SHA
    9307e21 View commit details
    Browse the repository at this point in the history

Commits on Apr 14, 2025

  1. inspect: Fix isgenerator logic.

    Also optimise both `isgenerator()` and `isgeneratorfunction()` so they use
    the same lambda, and don't have to create it each time they are called.
    
    Fixes issue micropython#997.
    
    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    48bf3a7 View commit details
    Browse the repository at this point in the history
  2. inspect: Add basic unit tests.

    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    2665047 View commit details
    Browse the repository at this point in the history
  3. inspect: Implement iscoroutinefunction and iscoroutine.

    Signed-off-by: Damien George <damien@micropython.org>
    dpgeorge committed Apr 14, 2025
    Configuration menu
    Copy the full SHA
    5b496e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2025

  1. lora: Fix SNR value in SX126x received packets.

    Wasn't being treated as a signed value.
    
    Fixes issue micropython#999.
    
    Signed-off-by: Angus Gratton <angus@redyak.com.au>
    projectgus authored and dpgeorge committed Apr 24, 2025
    Configuration menu
    Copy the full SHA
    f8c8875 View commit details
    Browse the repository at this point in the history
  2. top: Bump the Ruff version to 0.11.6.

    With small code fixes to match.
    
    Signed-off-by: Angus Gratton <angus@redyak.com.au>
    projectgus authored and dpgeorge committed Apr 24, 2025
    Configuration menu
    Copy the full SHA
    d887a02 View commit details
    Browse the repository at this point in the history
  3. all: Apply Ruff 0.11.6 reformatting changes.

    Signed-off-by: Angus Gratton <angus@redyak.com.au>
    projectgus authored and dpgeorge committed Apr 24, 2025
    Configuration menu
    Copy the full SHA
    68e0dfc View commit details
    Browse the repository at this point in the history
Loading