Fork some base libraries (#758)

* Fork some base libraries

* Update ESPAsyncWebServer
This commit is contained in:
Otto Winter 2019-10-18 14:46:09 +02:00 committed by GitHub
parent 68d0d045c0
commit c3aa834d80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
10 changed files with 10 additions and 57 deletions

View File

@ -107,10 +107,6 @@ lint-tidy:
<<: *lint
script:
- pio init --ide atom
- |
if ! patch -R -p0 -s -f --dry-run <script/.neopixelbus.patch; then
patch -p0 < script/.neopixelbus.patch
fi
- script/clang-tidy --all-headers --fix
- script/ci-suggest-changes

View File

@ -40,10 +40,6 @@ matrix:
- clang-format-7
before_script:
- pio init --ide atom
- |
if ! patch -R -p0 -s -f --dry-run <script/.neopixelbus.patch; then
patch -p0 < script/.neopixelbus.patch
fi
- clang-tidy-7 -version
- clang-format-7 -version
- clang-apply-replacements-7 -version

View File

@ -9,5 +9,5 @@ def to_code(config):
# https://github.com/me-no-dev/AsyncTCP/blob/master/library.json
cg.add_library('AsyncTCP', '1.0.3')
elif CORE.is_esp8266:
# https://github.com/me-no-dev/ESPAsyncTCP/blob/master/library.json
cg.add_library('ESPAsyncTCP', '1.2.0')
# https://github.com/OttoWinter/ESPAsyncTCP
cg.add_library('ESPAsyncTCP-esphome', '1.2.2')

View File

@ -155,7 +155,7 @@ def to_code(config):
yield cg.register_component(var, config)
# https://github.com/marvinroger/async-mqtt-client/blob/master/library.json
cg.add_library('AsyncMqttClient', '0.8.2')
cg.add_library('AsyncMqttClient-esphome', '0.8.2')
cg.add_define('USE_MQTT')
cg.add_global(mqtt_ns.using)

View File

@ -169,4 +169,4 @@ def to_code(config):
cg.add(var.set_pixel_order(getattr(ESPNeoPixelOrder, config[CONF_TYPE])))
# https://github.com/Makuna/NeoPixelBus/blob/master/library.json
cg.add_library('NeoPixelBus', '2.5.0')
cg.add_library('NeoPixelBus-esphome', '2.5.2')

View File

@ -21,5 +21,5 @@ def to_code(config):
if CORE.is_esp32:
cg.add_library('FS', None)
# https://github.com/me-no-dev/ESPAsyncWebServer/blob/master/library.json
cg.add_library('ESP Async WebServer', '1.2.2')
# https://github.com/OttoWinter/ESPAsyncWebServer/blob/master/library.json
cg.add_library('ESPAsyncWebServer-esphome', '1.2.4')

View File

@ -11,12 +11,12 @@ include_dir = include
[common]
lib_deps =
AsyncTCP@1.0.3
AsyncMqttClient@0.8.2
AsyncMqttClient-esphome@0.8.2
ArduinoJson-esphomelib@5.13.3
ESP Async WebServer@1.2.2
ESPAsyncWebServer-esphome@1.2.3
FastLED@3.2.9
NeoPixelBus@2.5.0
ESPAsyncTCP@1.2.0
NeoPixelBus-esphome@2.5.2
ESPAsyncTCP-esphome@1.2.2
TinyGPSPlus@1.0.2
build_flags =
-Wno-reorder

View File

@ -1,35 +0,0 @@
--- .pio/libdeps/livingroom8266/NeoPixelBus_ID547/src/internal/NeoEsp8266DmaMethod.h 2019-06-25 11:14:33.000000000 +0200
+++ .pio/libdeps/livingroom8266/NeoPixelBus_ID547/src/internal/NeoEsp8266DmaMethod.h.2 2019-06-25 11:14:40.000000000 +0200
@@ -195,7 +195,12 @@
_i2sBufDesc[indexDesc].sub_sof = 0;
_i2sBufDesc[indexDesc].datalen = blockSize;
_i2sBufDesc[indexDesc].blocksize = blockSize;
- _i2sBufDesc[indexDesc].buf_ptr = (uint32_t)is2Buffer;
+ union {
+ uint8_t *ptr;
+ uint32_t value;
+ } ptr;
+ ptr.ptr = is2Buffer;
+ _i2sBufDesc[indexDesc].buf_ptr = ptr.value;
_i2sBufDesc[indexDesc].unused = 0;
_i2sBufDesc[indexDesc].next_link_ptr = (uint32_t)&(_i2sBufDesc[indexDesc + 1]);
@@ -361,12 +366,15 @@
case NeoDmaState_Sending:
{
- slc_queue_item* finished_item = (slc_queue_item*)SLCRXEDA;
-
+ union {
+ slc_queue_item *ptr;
+ uint32_t value;
+ } ptr;
+ ptr.value = SLCRXEDA;
// the data block had actual data sent
// point last state block to first state block thus
// just looping and not sending the data blocks
- (finished_item + 1)->next_link_ptr = (uint32_t)(finished_item);
+ (ptr.ptr + 1)->next_link_ptr = ptr.value;
s_this->_dmaState = NeoDmaState_Zeroing;
}

View File

@ -126,7 +126,6 @@ def lint_executable_bit(fname):
@lint_content_find_check('\t', exclude=[
'esphome/dashboard/static/ace.js', 'esphome/dashboard/static/ext-searchbox.js',
'script/.neopixelbus.patch',
])
def lint_tabs(fname):
return "File contains tab character. Please convert tabs to spaces."

View File

@ -6,9 +6,6 @@ cd "$(dirname "$0")/.."
if [[ ! -e ".gcc-flags.json" ]]; then
pio init --ide atom
fi
if ! patch -R -p0 -s -f --dry-run <script/.neopixelbus.patch; then
patch -p0 < script/.neopixelbus.patch
fi
set -x