Skip to content

Commit

Permalink
This allows us to get rid of this nasty and brittle text parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed May 11, 2024
1 parent 61c5e87 commit 175b73e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/devcap_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ echo "Screengrab saved to ${DEVCAP_PIC}"
echo "See https://github.com/NiLuJe/FBInk/blob/master/utils/devcap_expected_results.png for the expected *on-screen* result".
header "EvTest"
echo "Please tap the top-left corner of the screen in the next 10s!"
TOUCH_DEV="$(input_scan -m touchscreen 2>/dev/null | grep '(matched: 1)' | grep -o '/dev/input/event[[:digit:]]\+')"
TOUCH_DEV="$(input_scan -p -m touchscreen | cut -f1 -d',')"
(
if [ -e "${TOUCH_DEV}" ] ; then
evtest "${TOUCH_DEV}" >> "${DEVCAP_LOG}" 2>&1
Expand Down

0 comments on commit 175b73e

Please sign in to comment.