Skip to content
Snippets Groups Projects
  1. Dec 09, 2019
    • rahix's avatar
      hack(ble): Temporarily silence a warning · 4107bd22
      rahix authored
      
      With the increased warning-level, GCC warns about three unused fields in
      `bleSmpCfg`:
      
          - maxAttemptTimeout: Maximum 'Repeated attempts' timeout in msec
          - attemptDecTimeout: Time msec before attemptExp decreases
          - attemptExp: Exponent to raise attemptTimeout on maxAttempts
      
      These should probably be set to sensible values but to make !360
      mergeable, explicitly set them to zero for now.
      
      Signed-off-by: default avatarRahix <rahix@rahix.de>
      4107bd22
  2. Dec 06, 2019
  3. Dec 05, 2019
  4. Nov 25, 2019
  5. Nov 22, 2019
    • fuchsi*'s avatar
      chore(preload): Change preload app author to 'card10 contributors' · fbeb7766
      fuchsi* authored and rahix's avatar rahix committed
      fbeb7766
    • rahix's avatar
      Merge 'wiki: bluetooth: add NimBLE page' · f5b8e643
      rahix authored
      Added a page to the wiki which describes how to setup NimBLE on the ESP32.
      
      See merge request !358
      f5b8e643
    • coon's avatar
      docs(BLE): Add NimBLE page · bcfa458f
      coon authored and rahix's avatar rahix committed
      bcfa458f
    • rahix's avatar
      Merge 'faulty unsigned comparisons' · cac0bcf3
      rahix authored
      Fix faulty error handling due to always-false unsigned comparisons.
      `-Wtype-limits` revealed three errors in the firmware:
      
          ../pycardium/modules/sys_leds.c: In function 'mp_leds_get_rocket':
          ../pycardium/modules/sys_leds.c:207:10: warning: comparison is
                      always false due to limited range of data type [-Wtype-limits]
            207 |  if (ret == -EINVAL) {
                |          ^~
      
      
          ../pycardium/mphalport.c: In function 'mp_hal_set_interrupt_char':
          ../pycardium/mphalport.c:115:8: warning: comparison is always true
                      due to limited range of data type [-Wtype-limits]
            115 |  if (c != -1) {
                |        ^~
      
          ../epicardium/modules/bhi.c: In function 'epic_bhi160_enable_sensor':
          ../epicardium/modules/bhi.c:134:12: warning: comparison is always
                      false due to limited range of data type [-Wtype-limits]
            134 |  if (vs_id < 0) {
                |            ^
          ../epicardium/modules/bhi.c: In function 'epic_bhi160_disable_sensor':
          ../epicardium/modules/bhi.c:191:12: warning: comparison is always
                      false due to limited range of data type [-Wtype-limits]
            191 |  if (vs_id < 0) {
                |            ^
      
      Note that on the target platform `char` and `enum`s are unsigned.  The
      compiler has probably removed all of these `if`s so far because the
      conditions were determined to always be false.
      
      See merge request !357
      cac0bcf3
  6. Nov 19, 2019
  7. Nov 13, 2019
    • rahix's avatar
      chore: Update CHANGELOG · 87bccda8
      rahix authored
      87bccda8
    • rahix's avatar
      feat(utime): Implement ticks_ms() and ticks_us() · 8926fd02
      rahix authored
      
      Implement the hal functions necessary for utime.ticks_ms() and
      utime.ticks_us().  This enables much more accurate measurements of time
      taken in Pycardium (useful for profiling).
      
      Please note that the tick counter will reset whenever a new app is
      loaded.
      
      Signed-off-by: default avatarRahix <rahix@rahix.de>
      8926fd02
    • rahix's avatar
      fix(menu): Fix UX issues in USB-Mode · 020050f4
      rahix authored
      
      Add a short delay after opening USB-Mode to prevent immediate exit which
      happened when pressing the select-button for a very short time.
      
      Also exit the menu-app after exiting USB-Mode to force a reload and thus
      immediately display changes in the apps/ folder.
      
      Signed-off-by: default avatarRahix <rahix@rahix.de>
      020050f4
Loading