1. 29 Oct, 2023 3 commits
    • David Lechner's avatar
      pbio/task: don't run task from cancel function · 4d386be0
      David Lechner authored
      Since efda5d02 ("drv/bluetooth_stm32_bluenrg: strict ordering of BLE
      tasks"), it is no longer safe to call pbio_task_run_once() anywhere but
      in the main contiki process loop of Bluetooth drivers.
      
      This could break canceling some Bluetooth operations (causing them to
      hang), but this will need to be fixed in a different way. A FIXME
      comment with some suggestions is added to remind us to fix this.
      4d386be0
    • David Lechner's avatar
      pybricks.tools: Revert "Run tasks while awaiting them." · da7565e5
      David Lechner authored
      This reverts commit a50ff187.
      
      The Bluetooth drivers have task queues that prevent more than 1 task
      from running concurrently.
      
      The reverted change broke this safety mechanism by pumping tasks from
      MicroPython causing multiple tasks to run at the same time, overwhelming
      the Bluetooth chip.
      da7565e5
    • David Lechner's avatar
      drv/bluetooth_stm32_cc2640: fix spi transfer sizes · 8830f3b2
      David Lechner authored
      We were always reading/writing 3 extra bytes because we weren't taking
      into account the 3 extra bytes already sent for the header.
      
      Also, real_write_xfer_size is unsigned and can be zero, so we should
      not be subtracting from it.
      
      Also, also, add some comments to clarify where the FCS (checksum) byte
      comes into play.
      8830f3b2
  2. 28 Oct, 2023 1 commit
    • Laurens Valk's avatar
      pybricks.hubs.MoveHub: Use standard hub init. · 5e2d65de
      Laurens Valk authored
      The Move Hub cannot have true vector axes, but we can still use this API to initialize the hub using numeric indices.
      
      This ensures we can use the custom orientation not just in tilt, but also in acceleration like we do on other hubs.
      5e2d65de
  3. 27 Oct, 2023 2 commits
  4. 26 Oct, 2023 7 commits
  5. 24 Oct, 2023 4 commits
  6. 23 Oct, 2023 7 commits
  7. 20 Oct, 2023 4 commits
  8. 30 Jul, 2023 1 commit
  9. 13 Jul, 2023 11 commits