patternX to pattern (#1120)

* pattern is not an issue for yaml. changing patternX to pattern everywhere

* added patternX to deprecated
This commit is contained in:
2025-02-27 10:42:21 +01:00
committed by GitHub
parent 964ab19b42
commit b4dc1dde6c
10 changed files with 352 additions and 15 deletions

View File

@ -17,7 +17,7 @@ reg 0x658 0x0
reg 0x658 0x61e0
# Enable MH02 PLL clock
patternX enable_clock_pattern.pyat
pattern enable_clock_pattern.pyat
# start the flow
setbit 0x108 0
clearbit 0x108 0

View File

@ -36,5 +36,5 @@ reg 0x5D8 0x0
setbit 0x500 18
# load default pattern
patternX readout_pattern.pyat
pattern readout_pattern.pyat

View File

@ -748,12 +748,12 @@ int readConfigFile(char *mess, char *fileName, char *fileType) {
LOG(logINFOBLUE, ("Polled bit %d in 0x%x\n", bit, addr));
}
// patternX command
else if (!strncmp(line, "patternX", strlen("patternX"))) {
// take a file name and call loadPAtterFile
// pattern command
else if (!strncmp(line, "pattern", strlen("pattern"))) {
// take a file name and call loadPatterFile
char patternFileName[LZ];
if (sscanf(line, "%s %s", command, patternFileName) != 2) {
sprintf(mess, "Could not scan patternX command. Line:[%s].\n",
sprintf(mess, "Could not scan pattern command. Line:[%s].\n",
line);
LOG(logERROR, (mess));
return FAIL;