1. 12 5月, 2019 1 次提交
  2. 11 5月, 2019 7 次提交
    • D
      Add Pycom GPy board (#2754) · aff2e42a
      devingleeson 提交于
      aff2e42a
    • A
      Update mac.md (#2745) · 2743e7b7
      Amon Moce Rodolphe BAZONGO 提交于
      2743e7b7
    • M
    • A
      Use std::abs for a float-compatible abs() function (#2738) · 2f249edb
      Angus Gratton 提交于
      * Other Arduino cores uses a macro to redefine libc abs() to take any
        type, meaning abs(-3.3) == 3.3 not the normal libc result of 3.
      
      * 1e4bf14a (#1783) replaced similar min, max macros with c++ stdlib. However
        this change includes <algorithm> after the line which defines the abs() macro.
        <algorithm> includes <cstdlib> which undefines abs() and re-defines it.
      
      * This means abs() becomes the plain libc version again which only takes
        integers, so abs(-3.3) == 3. As reported here:
        https://github.com/espressif/esp-idf/issues/3405
      
      This fix tries to keep in the spirit of #1783 by using libstdc++. The other
      option would be to include <cstdlib> before defining the abs() macro, so it
      doesn't get undef-ed again later on.
      2f249edb
    • E
      StreamString SSO fix (#2736) · bd57ff4a
      Earle F. Philhower, III 提交于
      As found by @mongozmaki in https://github.com/esp8266/Arduino/pull/6035
      
      With SSO implementation in String, StreamString::write generates wrong
      strings under some circumstances.  Reason is that String::len() returns
      strlen(sso_buf) if SSO=true but with newly written data
      (in StreamString::write) the null-termination missing at the time len()
      is called.
      
      Furthermore, len() is called twice which is inefficient if SSO=true.
      bd57ff4a
    • H
      Fix semaphores in IDF & std::string assert (#2728) · 43bf393d
      h2zero 提交于
      * Fix semaphores in IDF & std::string assert 
      
      Fixes the problem of giving a mutex from a callback with the latest IDF. Also addresses an occasional assert that happens when the btc_task callback gives the semaphore and causes an assert due to both cores potentially writing m_owner concurrently.
      
      * Restored m_owner position in wait() as requested
      
      * Reapply assert fix and move setting m_owner in ::give() 
      
      Revert previous revert commit and move setting of m_owner in ::give to before giving the semaphore to prevent race condition possibility.
      43bf393d
    • A
      Implemented ability to change BLE address (#2690) · bea7bd18
      Adam 提交于
      Implemented the ability to change the ESP32s BLE device address as
      according the the BLE specification. This address is used when
      advertising the ESP32 over BLE.
      bea7bd18
  3. 09 5月, 2019 1 次提交
  4. 02 5月, 2019 1 次提交
  5. 30 4月, 2019 1 次提交
  6. 27 4月, 2019 3 次提交
    • D
      Add board "WEMOS D1 MINI ESP32". (#2710) · 697d4ff7
      Dirk O. Kaar 提交于
      697d4ff7
    • E
      Copy ESP8266 String w/SSO to ESP32 repo (#2715) · ab309e40
      Earle F. Philhower, III 提交于
      I redid the ESP8266 WString library to enable small string optimization
      (SSO) a while back, and think it would be helpful even on the ESP32 with
      its higher memory complement.
      
      SSO avoids lots of tiny mallocs() on the heap which cause fragmentation
      by using the memory in the class object itself to store the actual
      string and only mallocing() for buffers that are larger than what can
      fit in thie class object.  Modern C++ std::string implementations have
      this optimization as well, but since we're using Arduino strings we had
      to roll our own.
      ab309e40
    • L
      Ensure that _size is properly set in begin (#2706) · 932666a0
      lbernstone 提交于
      * Ensure that _size is properly set in begin
      
      * NULL check on _data assignment
      
      * Changed _data to malloc in order to catch alloc fails
      932666a0
  7. 25 4月, 2019 2 次提交
  8. 24 4月, 2019 1 次提交
    • L
      Converted EEPROM library to use nvs instead of partition. (#2678) · 619568db
      lbernstone 提交于
      * Converted EEPROM library to use nvs instead of partition.  Removed eeprom partition from all partition table CSV files.
      * Changed variable names, added some comments, formatting as per me-no-dev's requests
      * Checks for memory on malloc
      * Moved include nvs.h from header to code
      * Reworked the extra example to make it more clear how to actually use the library and persist data
      619568db
  9. 23 4月, 2019 5 次提交
  10. 18 4月, 2019 1 次提交
  11. 16 4月, 2019 2 次提交
  12. 15 4月, 2019 4 次提交
  13. 14 4月, 2019 1 次提交
  14. 13 4月, 2019 5 次提交
  15. 12 4月, 2019 5 次提交
    • M
    • V
      replace with strerror (#2663) · 1efcd21b
      Victor Aprea 提交于
      1efcd21b
    • M
      Set ESP-IDF to 3.2 (#2662) · 7b5cd47d
      Me No Dev 提交于
      * Set IDF to v3.2
      
      * Remove BLE submodule
      
      * Add BLE lib source
      
      * Update Camera example to support OV3660
      7b5cd47d
    • A
      Properly allocate string and remove warning (#2652) · 14126060
      Arsham Skrenes 提交于
      * Properly allocate string and remove warning
      
      The former way generates the following warning:
      ISO C++ forbids converting a string constant to 'char*'
      
      This change makes a character array the size of the string with null ending. It's clearer and gets rid of the warning.
      
      * Better way
      
      Since this is technically immutable, the type should reflect this too.
      14126060
    • V
      Alternative Improve _uploadReadByte (#2656) · 25c0b522
      Victor Aprea 提交于
      * add opportunity for more than one retry to _uploadReadByte
      
      * an alternative timeout-based method to making _uploadReadByte more resilient
      
      * move timing variables in the correct scope
      
      * implement and use client.getTimeout instead of hard-coded timeout in _uploadReadByte
      
      * add missing return
      
      * some refactoring to address respecting the timeout in a potentially deadlocked connection
      
      * fix spelling in comment
      
      * address review comments; move impl to cpp file for getTimeout, and remove local variable for currentMillis
      
      * remove redundant cast
      
      * need to check for timeout outside the inner while as well
      
      * update WebUpdate example to print something in unexpected callback condition
      
      * update log_e messages per review comments
      25c0b522