Skip to content

Commit 168addc

Browse files
committed
minor correction
1 parent 6f273e7 commit 168addc

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

ports/wasm/Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,10 @@ all: $(BUILD)/circuitpython.mjs
209209

210210
# Add Blinka character (U+E000) to banner after build
211211
$(BUILD)/circuitpython.mjs: $(OBJ) library.js $(SRC_JS)
212-
@# Add Blinka character to generated mpversion.h if it doesn't have it already
213-
@if [ -f $(BUILD)/genhdr/mpversion.h ] && ! grep -q '\\uE000' $(BUILD)/genhdr/mpversion.h; then \
214-
sed -i.bak 's/"Adafruit CircuitPython/"\\uE000 Adafruit CircuitPython/' $(BUILD)/genhdr/mpversion.h && \
212+
@# Add Blinka character (U+E000) to generated mpversion.h if it doesn't have it already
213+
@# U+E000 in UTF-8 is: 0xEE 0x80 0x80
214+
@if [ -f $(BUILD)/genhdr/mpversion.h ] && ! grep -q '\\xEE\\x80\\x80' $(BUILD)/genhdr/mpversion.h; then \
215+
sed -i.bak 's/"Adafruit CircuitPython/"\\xEE\\x80\\x80 Adafruit CircuitPython/' $(BUILD)/genhdr/mpversion.h && \
215216
rm -f $(BUILD)/genhdr/mpversion.h.bak; \
216217
fi
217218
$(ECHO) "LINK $@"

0 commit comments

Comments
 (0)