开源改变世界

arduino ide 错误“变量或字段‘manage_activity’声明无效” #478

推推 grbl 3年前 (2023-02-05) 174次浏览
关闭
acaors 打开了这个问题 2013 年 5 月 16 日 · 2 条评论
关闭

arduino ide 错误“变量或字段‘manage_activity’声明无效”#478

acaors 打开了这个问题 2013 年 5 月 16 日 · 2 条评论

评论

arduino ide 错误“变量或字段‘manage_activity’声明无效” #478

在项目Marlin-RAMPS_v1.3-1.4中,验证代码时,arduino ide提示:
variable or field ‘manage_activity’ declared void
here is a full copy of the log:

In file included from /EEPROMwrite.h:4,
             from Marlin.pde:30:
Marlin.h:63: error: variable or field 'manage_inactivity' declared void
Marlin.h:63: error: 'byte' was not declared in this scope
In file included from Marlin.pde:30:
/EEPROMwrite.h: In function 'int EEPROM_writeAnything(int&, const T&)':
EEPROMwrite.h:12: error: expected initializer before '*' token
EEPROMwrite.h:15: error: 'p' was not declared in this scope
/EEPROMwrite.h: In function 'int EEPROM_readAnything(int&, T&)':
EEPROMwrite.h:21: error: 'byte' was not declared in this scope
EEPROMwrite.h:21: error: 'p' was not declared in this scope
EEPROMwrite.h:21: error: expected primary-expression before ')' token
EEPROMwrite.h:21: error: expected primary-expression before 'void'
arduino ide 错误“变量或字段‘manage_activity’声明无效” #478
贡献者

这个是大约一年前创建的,有很多变化,请下载最新的 marlin 副本,看看问题是否仍然存在。您还可以使用最新的 arduino IDE 来刷新 marlin 固件。如果您的板文件等只能在旧的 ide 下工作,请先升级它们,以便它们在最新的 IDE 下工作。

如果您为不在https://github.com/ErikZalm/Marlin/tree/Marlin_v1/ArduinoAddons中的硬件创建板文件,请 fork marlin 并添加文件,然后创建一个拉取请求,以便我们可以获得硬件支持的。这也将使人们了解人们正在使用什么硬件。