Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit d8769fd

Browse files
author
iwahdan88
committed
esp32: Removed CRTL-D function in PyBytes Firmware + minor bug fix
- Removed CRTL-D function in PyBytes Firmware - Fixed `mpy-build-check.sh` and 'size_check.sh' scripts to handle PyBytes Build Directory
1 parent 215fcd2 commit d8769fd

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

esp32/tools/mpy-build-check.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ VARIANT="$3"
66
PY_PATH="./frozen"
77
PY_DIRS="$(ls ${PY_PATH})"
88
OS="$(uname)"
9-
BUILD_DIR="build"
9+
if [ ${VARIANT} = "PYBYTES" ] ; then
10+
BUILD_DIR="build-PYBYTES"
11+
else
12+
BUILD_DIR="build"
13+
fi
1014

1115
#Script Has to be called from esp32 Dir
1216
if ! [ $0 = "tools/mpy-build-check.sh" ]; then

esp32/tools/size_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if [ "${BOARD}" != "WIPY" -a "${BOARD}" != "SIPY" -a "${BOARD}" != "LOPY" -a "${
2020
fi
2121

2222
if [ "${VARIANT}" == "PYBYTES" ] ; then
23-
BUILD_DIR="build-variant"
23+
BUILD_DIR="build-PYBYTES"
2424
fi
2525

2626
APP_BIN_PATH=./"${BUILD_DIR}"/"${BOARD}"/"${RELEASE_TYP}"/$(tr '[:upper:]' '[:lower:]'<<<${BOARD})".bin"

lib/utils/pyexec.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,8 +446,12 @@ int pyexec_friendly_repl(void) {
446446
} else if (ret == CHAR_CTRL_D) {
447447
// exit for a soft reset
448448
mp_hal_stdout_tx_str("\r\n");
449+
#if (VARIANT == PYBYTES)
450+
continue;
451+
#else
449452
vstr_clear(&line);
450453
return PYEXEC_FORCED_EXIT;
454+
#endif
451455
} else if (ret == CHAR_CTRL_E) {
452456
// paste mode
453457
mp_hal_stdout_tx_str("\r\npaste mode; Ctrl-C to cancel, Ctrl-D to finish\r\n=== ");

0 commit comments

Comments
 (0)