This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我在main.c中定义了
float LaserTemperature=BaseTemp;
BaseTemp是在sys.h中声明的常量。
然后我在key.c中成功调用LaserTemperature 调用程序:
extern float LaserTemperature;
但是在LCD.c中却提示#28 expression must have a constant value 同样的调用程序
extern float LaserTemperature;