问题:
case 2:
..\..\UI\ui.selfcheck.c(281): error: #116: a break statement may only be used within a loop or switch
break;
..\..\UI\ui.selfcheck.c(282): error: #121: a case label may only be used within a switch
case 3:
..\..\UI\ui.selfcheck.c(288): error: #116: a break statement may only be used within a loop or switch
break;
..\..\UI\ui.selfcheck.c(289): error: #121: a case label may only be used within a switch
case 4:
..\..\UI\ui.selfcheck.c(292): error: #116: a break statement may only be used within a loop or switch
break;
..\..\UI\ui.selfcheck.c(293): error: #121: a case label may only be used within a switch
case 5:
..\..\UI\ui.selfcheck.c(300): error: #116: a break statement may only be used within a loop or switch
break;
..\..\UI\ui.selfcheck.c(301): error: #122: a default label may only be used within a switch
default:break;
..\..\UI\ui.selfcheck.c(301): error: #116: a break statement may only be used within a loop or switch
default:break;
..\..\UI\ui.selfcheck.c(187): warning: #550-D: variable "DataKEY" was set but never used
uint16_t DataKEY;
..\..\UI\ui.selfcheck.c(303): error: #169: expected a declaration
}
..\..\UI\ui.selfcheck.c(305): error: #169: expected a declaration
default:
..\..\UI\ui.selfcheck.c(307): error: #169: expected a declaration
原因:
我屏蔽代码的时候,不小心多屏蔽了一个括号