diff --git a/Sys.cpp b/Sys.cpp index 4902e301..4088d90b 100644 --- a/Sys.cpp +++ b/Sys.cpp @@ -5,7 +5,7 @@ #include "Platform\stm32.h" -const TSys Sys; +TSys Sys; const TTime Time; extern uint __heap_base; diff --git a/Sys.h b/Sys.h index 7aae6aca..0c072705 100644 --- a/Sys.h +++ b/Sys.h @@ -109,7 +109,7 @@ public: void Start(); // 开始系统大循环 }; -extern const TSys Sys; //创建一个全局的Sys对象 会在main函数之前执行构造函数(!!!!!) +extern TSys Sys; //创建一个全局的Sys对象 会在main函数之前执行构造函数(!!!!!) //#include "Time.h" #include "Interrupt.h"