用keil发现下面问题怎么解决
#37: the #endif for this directive is
error: #20: identifier "ledState" is undefined missing



用keil发现下面问题怎么解决
#37: the #endif for this directive is
error: #20: identifier "ledState" is undefined missing



意思就是ledState这个符号在使用之前没有定义或声明过,具体为什么,自己分析一下代码。
从你贴出的部分代码也确实没有看到。
另外,还有个#if语句没有对应的#endif