Skip to content

Commit

Permalink
Merging of development branch into master for v1.2.0 release.
Browse files Browse the repository at this point in the history
  • Loading branch information
atanisoft committed Feb 17, 2019
2 parents fa0c8cf + 55684c2 commit 0ef7fdc
Show file tree
Hide file tree
Showing 429 changed files with 79,596 additions and 2,874 deletions.
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@
.piolibdeps
.clang_complete
.gcc-flags.json
.vscode
include/index_html.h
.vscode/.browse.c_cpp.db*
.vscode/c_cpp_properties.json
.vscode/launch.json
65 changes: 0 additions & 65 deletions .travis.yml

This file was deleted.

6 changes: 6 additions & 0 deletions DCCppESP32-partitions.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Name, Type, SubType, Offset, Size, Flags
nvs, data, nvs, 0x9000, 0x5000,
otadata, data, ota, 0xe000, 0x2000,
ota_0, app, ota_0, , 0x190000,
ota_1, app, ota_1, , 0x190000,
spiffs, data, spiffs, , 0xD0000,
295 changes: 276 additions & 19 deletions README.md

Large diffs are not rendered by default.

23 changes: 20 additions & 3 deletions build_index_header.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,29 @@
#######################################################################
# DCC COMMAND STATION FOR ESP32
#
# COPYRIGHT (c) 2017-2019 Mike Dunston
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see http://www.gnu.org/licenses
#######################################################################

Import("env")
import gzip
import os
import struct
import cStringIO

def build_index_html_h(source, target, env):
if os.path.exists('%s/src/index_html.h' % env.subst('$PROJECT_DIR')):
if os.path.getmtime('%s/data/index.html' % env.subst('$PROJECT_DIR')) < os.path.getmtime('%s/src/index_html.h' % env.subst('$PROJECT_DIR')):
if os.path.exists('%s/include/index_html.h' % env.subst('$PROJECT_DIR')):
if os.path.getmtime('%s/data/index.html' % env.subst('$PROJECT_DIR')) < os.path.getmtime('%s/include/index_html.h' % env.subst('$PROJECT_DIR')):
return
print "Attempting to compress %s/data/index.html" % env.subst('$PROJECT_DIR')
gzFile = cStringIO.StringIO()
Expand All @@ -16,7 +33,7 @@ def build_index_html_h(source, target, env):
gzLen = gzFile.tell()
gzFile.seek(0, os.SEEK_SET)
print 'Compressed index.html.gz file is %d bytes' % gzLen
with open('%s/src/index_html.h' % env.subst('$PROJECT_DIR'), 'w') as f:
with open('%s/include/index_html.h' % env.subst('$PROJECT_DIR'), 'w') as f:
f.write("#pragma once\n")
f.write("const size_t indexHtmlGz_size = {};\n".format(gzLen))
f.write("const uint8_t indexHtmlGz[] PROGMEM = {\n");
Expand Down
Loading

0 comments on commit 0ef7fdc

Please sign in to comment.