1
0
mirror of https://github.com/esphome/esphome.git synced 2025-03-14 06:38:17 +00:00

Limit upload speed to 115200

This commit is contained in:
Otto Winter 2018-09-25 17:58:40 +02:00
parent 8dba37846b
commit 7c00b814ea
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -60,8 +60,13 @@ lib_deps =
build_flags =
{build_flags}
${{common.build_flags}}
upload_speed = {upload_speed}
"""
UPLOAD_SPEED_OVERRIDE = {
'esp210': 57600,
}
def get_build_flags(config, key):
build_flags = set()
@ -86,6 +91,7 @@ def get_ini_content(config, path):
u'platform': config[CONF_ESPHOMEYAML][CONF_ARDUINO_VERSION],
u'board': config[CONF_ESPHOMEYAML][CONF_BOARD],
u'build_flags': u'',
u'upload_speed': UPLOAD_SPEED_OVERRIDE.get(core.BOARD, 115200),
}
build_flags = set()
if not config[CONF_ESPHOMEYAML][CONF_USE_CUSTOM_CODE]: