Tweaks to build scripts

This commit is contained in:
Scott Lahteine 2021-02-27 23:51:56 -06:00
parent 4343de3ee2
commit 0a097b7a1e
3 changed files with 8 additions and 7 deletions

View File

@ -8,8 +8,9 @@ from pprint import pprint
Import("env") Import("env")
rxBuf = env["MARLIN_FEATURES"]["RX_BUFFER_SIZE"] if "RX_BUFFER_SIZE" in env["MARLIN_FEATURES"] else "0" mf = env["MARLIN_FEATURES"]
txBuf = env["MARLIN_FEATURES"]["TX_BUFFER_SIZE"] if "TX_BUFFER_SIZE" in env["MARLIN_FEATURES"] else "0" rxBuf = mf["RX_BUFFER_SIZE"] if "RX_BUFFER_SIZE" in mf else "0"
txBuf = mf["TX_BUFFER_SIZE"] if "TX_BUFFER_SIZE" in mf else "0"
serialBuf = str(max(int(rxBuf), int(txBuf), 350)) serialBuf = str(max(int(rxBuf), int(txBuf), 350))

View File

@ -31,11 +31,11 @@ if env.MarlinFeatureIsEnabled("POSTMORTEM_DEBUGGING"):
print("Libmaple modified and ready for post mortem debugging") print("Libmaple modified and ready for post mortem debugging")
rxBuf = env["MARLIN_FEATURES"]["RX_BUFFER_SIZE"] if "RX_BUFFER_SIZE" in env["MARLIN_FEATURES"] else "0" mf = env["MARLIN_FEATURES"]
txBuf = env["MARLIN_FEATURES"]["TX_BUFFER_SIZE"] if "TX_BUFFER_SIZE" in env["MARLIN_FEATURES"] else "0" rxBuf = mf["RX_BUFFER_SIZE"] if "RX_BUFFER_SIZE" in mf else "0"
txBuf = mf["TX_BUFFER_SIZE"] if "TX_BUFFER_SIZE" in mf else "0"
if int(rxBuf) < 64: if int(rxBuf) < 64:
rxBuf = "64" rxBuf = "64"
if int(txBuf) < 64: if int(txBuf) < 64:
txBuf = "64" txBuf = "64"