mirror of
https://github.com/lumapu/ahoy.git
synced 2025-05-14 01:16:37 +02:00
0.7.35
* fixed timestamp for alarms send over MqTT * auto-patch of `AsyncWebServer` #834, #1036 * Update documentation in Git regarding `ESP8266` default NRF24 pin assignments
This commit is contained in:
parent
ac53925a24
commit
ed268d1b63
7 changed files with 54 additions and 9 deletions
20
scripts/applyPatches.py
Normal file
20
scripts/applyPatches.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
import os
|
||||
import subprocess
|
||||
Import("env")
|
||||
|
||||
def applyPatch(libName, patchFile):
|
||||
os.chdir('.pio/libdeps/' + env['PIOENV'] + '/' + libName)
|
||||
|
||||
process = subprocess.run(['git', 'apply', '--reverse', '--check', '../../../../' + patchFile], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||
if (process.returncode == 0):
|
||||
print('\'' + patchFile + '\' already applied')
|
||||
else:
|
||||
process = subprocess.run(['git', 'apply', '../../../../' + patchFile])
|
||||
if (process.returncode == 0):
|
||||
print('\'' + patchFile + '\' applied')
|
||||
else:
|
||||
print('applying \'' + patchFile + '\' failed')
|
||||
|
||||
|
||||
# list of patches to apply (relative to /src)
|
||||
applyPatch("ESP Async WebServer", "../patches/AsyncWeb_Prometheus.patch")
|
Loading…
Add table
Add a link
Reference in a new issue