fix(boards): 修复arduino下变量名大小写不敏感

This commit is contained in:
王立帮
2025-10-19 19:46:25 +08:00
parent 6b1bd254f5
commit aaf5ffedec
3 changed files with 5 additions and 5 deletions

View File

@@ -90,7 +90,7 @@ Variables.allVariables = function (root) {
var varName = blockVariables[y];
// Variable name may be null if the block is only half-built.
if (varName) {
variableHash[varName.toLowerCase()] = varName;
variableHash[varName] = varName;
}
}
}
@@ -222,7 +222,7 @@ Variables.generateUniqueName = function (workspace) {
while (!newName) {
var inUse = false;
for (var i = 0; i < variableList.length; i++) {
if (variableList[i].toLowerCase() == potName) {
if (variableList[i] == potName) {
// This potential name is already used.
inUse = true;
break;