forked from MarlinFirmware/Marlin
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MK3 sync Prusa-Error-Codes (MarlinFirmware#4238)
* Sync PEC `FINDA_DIDNT_GO_OFF` to `FINDA_FILAMENT_STUCK` * Sync PEC `FSENSOR_DIDNT_GO_OFF` to `FSENSOR_FILAMENT_STUCK` * Sync PEC `PULLEY_STALLED` to `PULLEY_CANNOT_MOVE` * Sync PEC `SELECTOR_CANNOT_MOVE` update text * Sync PEC `IDLER_CANNOT_MOVE` update text * Sync PEC `PULLEY_WARNING_TMC_TOO_HOT` to `WARNING_TMC_PULLEY_TOO_HOT` * Snyc PEC `RestartMMU` to `ResetMMU` Also related text * Sync PEC `SELECTOR_WARNING_TMC_TOO_HOT` to `WARNING_TMC_SELECTOR_TOO_HOT` * Sync PEC `IDLER_WARNING_TMC_TOO_HOT` to `WARNING_TMC_IDLER_TOO_HOT` * Sync PEC `PULLEY_TMC_OVERHEAT_ERROR` to `TMC_PULLEY_OVERHEAT_ERROR` * Sync PEC `SELECTOR_TMC_OVERHEAT_ERROR` to `TMC_SELECTOR_OVERHEAT_ERROR` * Sync PEC `IDLER_TMC_OVERHEAT_ERROR` to `TMC_IDLER_OVERHEAT_ERROR` * Sync PEC `PULLEY_TMC_DRIVER_ERROR` to `TMC_PULLEY_DRIVER_ERROR` Also releated text * Sync PEC `SELECTOR_TMC_DRIVER_ERROR` to `TMC_SELECTOR_DRIVER_ERROR` Also related text * Sync PEC `IDLER_TMC_DRIVER_ERROR` to `TMC_IDLER_DRIVER_ERROR` Also related text * Sync PEC `PULLEY_TMC_DRIVER_RESET` to `TMC_PULLEY_DRIVER_RESET` * Sync PEC `SELECTOR_TMC_DRIVER_RESET` to `TMC_SELECTOR_DRIVER_RESET` * Sync PEC `IDLER_TMC_DRIVER_RESET` to `TMC_IDLER_DRIVER_RESET` * Sync PEC `PULLEY_TMC_UNDERVOLTAGE_ERROR` to `TMC_PULLEY_UNDERVOLTAGE_ERROR` * Sync PEC `SELECTOR_TMC_UNDERVOLTAGE_ERROR` to `TMC_SELECTOR_UNDERVOLTAGE_ERROR` * Sync PEC `IDLER_TMC_UNDERVOLTAGE_ERROR` to `TMC_IDLER_UNDERVOLTAGE_ERROR` * Sync PEC `PULLEY_TMC_DRIVER_SHORTED` to `TMC_PULLEY_DRIVER_SHORTED` Also related text * Sync PEC `SELECTOR_TMC_DRIVER_SHORTED` to `TMC_SELECTOR_DRIVER_SHORTED` Also related text * Sync PEC `IDLER_TMC_DRIVER_SHORTED` to `TMC_IDLER_DRIVER_SHORTED` Also related text * Sync PEC `PULLEY_SELFTEST_FAILED` to `MMU_PULLEY_SELFTEST_FAILED` Also related text * Sync PEC `SELECTOR_SELFTEST_FAILED` to `MMU_SELECTOR_SELFTEST_FAILED` Also releated text * Sync PEC `IDLER_SELFTEST_FAILED` to `MMU_IDLER_SELFTEST_FAILED` Also related text * Sync PEC fix MMU_MMU Update MMU MCU UNDERPOWER * Sync PEC `FIL_ALREADY_LOADED` to `FILAMENT_ALREADY_LOADED` Also related text * Add Prusa Error Codes check script * Remove `:` at FINDA and FSENSOR as it is in other tiles * Sync FSENSOR_DIDNT_TRIGGER MSG_DESC_SELECTOR_CANNOT_MOVE MSG_DESC_IDLER_CANNOT_MOVE MSG_DESC_FW_UPDATE_NEEDED FILAMENT_ALREADY_LOADED * Add MMU UNKOWN_ERROR PEC
- Loading branch information
1 parent
ded448d
commit b5bd9eb
Showing
20 changed files
with
1,706 additions
and
1,507 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
#!/bin/bash | ||
|
||
# download Prusa Error Codes for MMU | ||
#wget https://raw.githubusercontent.com/3d-gussner/Prusa-Error-Codes/master/04_MMU/error-codes.yaml --output-document=error-codes.yaml | ||
wget https://raw.githubusercontent.com/prusa3d/Prusa-Error-Codes/master/04_MMU/error-codes.yaml --output-document=error-codes.yaml | ||
|
||
oifs="$IFS" ## save original IFS | ||
IFS=$'\n' ## set IFS to break on newline | ||
codes=($(cat error-codes.yaml |grep "code:" |cut -d '"' -f2)) | ||
titles=($(cat error-codes.yaml |grep 'title:' |cut -d '"' -f2)) | ||
texts=($(cat error-codes.yaml |grep "text:" |cut -d '"' -f2)) | ||
actions=($(cat error-codes.yaml |grep "action:" |cut -d ':' -f2)) | ||
ids=($(cat error-codes.yaml |grep "id:" |cut -d '"' -f2)) | ||
IFS="$oifs" ## restore original IFS | ||
|
||
filename=errors_list.h | ||
|
||
clear | ||
for ((i = 0; i < ${#codes[@]}; i++)) do | ||
code=${codes[i]} | ||
id=$(cat $filename |grep "${code#04*}" | cut -d "=" -f1 | cut -d "_" -f3- |cut -d " " -f1) | ||
title=$(cat $filename |grep "${id}" |grep --max-count=1 "MSG_TITLE" |cut -d '"' -f2) | ||
text=$(cat $filename |grep "${id}" |grep --max-count=1 "MSG_DESC" |cut -d '"' -f2) | ||
action1=$(cat $filename |grep "),//$id"| cut -d "," -f1) | ||
action2=$(cat $filename |grep "),//$id"| cut -d "," -f2) | ||
action1=$(echo $action1 | cut -d ":" -f2- |cut -d ":" -f2) | ||
action2=$(echo $action2 | cut -d ":" -f2- |cut -d ":" -f2 |cut -d ")" -f1) | ||
if [ "$action2" == "NoOperation" ]; then | ||
action=" [$action1]" | ||
else | ||
action=" [$action1,$action2]" | ||
fi | ||
echo -n "code: $code |" | ||
if [ "$id" != "${ids[i]}" ]; then | ||
echo -n "$(tput setaf 1) $id $(tput sgr0) # $(tput setaf 2)${ids[i]}$(tput sgr0)|" | ||
else | ||
echo -n " $id |" | ||
fi | ||
if [ "$title" != "${titles[i]}" ]; then | ||
echo -n "$(tput setaf 1) $title $(tput sgr0) # $(tput setaf 2)${titles[i]}$(tput sgr0)|" | ||
else | ||
echo -n " $title |" | ||
fi | ||
if [ "$text" != "${texts[i]}" ]; then | ||
echo -n "$(tput setaf 1) $text $(tput sgr0) # $(tput setaf 2)${texts[i]}$(tput sgr0)|" | ||
else | ||
echo -n " $text |" | ||
fi | ||
if [ "$action" != "${actions[i]}" ]; then | ||
echo -n "$(tput setaf 1) $action $(tput sgr0) # $(tput setaf 2)${actions[i]}$(tput sgr0)|" | ||
else | ||
echo -n " $action |" | ||
fi | ||
echo | ||
done |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.