Contact me: hankecnc@gmail.com

Arduino IDE public 大量警告 #1024

推推 grbl 3年前 (2023-01-23) 160次浏览

打开
zdenekkarny 打开了这个问题 2021 年 3 月 17 日 · 1条评论
打开

Arduino IDE public 大量警告#1024

zdenekkarny 打开了这个问题 2021 年 3 月 17 日 · 1条评论

注释

Arduino IDE public 大量警告 #1024

压制其中一些

nuts_bolts.h:52 添加接下来的 9 行(或注释 #DEFINE max、min & bit 宏)
#ifdef max
#undef max
#endif
#ifdef min
#undef min
#endif
#ifdef bit
#undef bit
#endif

eeprom.c:133, eeprom.c:144
替换校验和 = (校验和 << 1) || (校验和 >> 7);
通过校验和 = (校验和 << 1) | (校验和 >> 7);

gcode.c: xx – 使用“break;” 在所有开关“案例:”的末尾

兹德内克

Arduino IDE public 大量警告 #1024

这些是#228#355中的已知警告

另一种解决方案是防止 Arduino IDE 静默添加一个#include <Arduino.h>

您可以通过#include <Arduino.h>在 grblUpload.ino 中提及来做到这一点:

/***********************************************************************
This sketch compiles and uploads Grbl to your 328p-based Arduino! 

To use:
- First make sure you have imported Grbl source code into your Arduino
  IDE. There are details on our Github website on how to do this.

- Select your Arduino Board and Serial Port in the Tools drop-down menu.
  NOTE: Grbl only officially supports 328p-based Arduinos, like the Uno.
  Using other boards will likely not work!

- Then just click 'Upload'. That's it!

For advanced users:
  If you'd like to see what else Grbl can do, there are some additional
  options for customization and features you can enable or disable. 
  Navigate your file system to where the Arduino IDE has stored the Grbl 
  source code files, open the 'config.h' file in your favorite text 
  editor. Inside are dozens of feature descriptions and #defines. Simply
  comment or uncomment the #defines or alter their assigned values, save
  your changes, and then click 'Upload' here. 

Copyright (c) 2015 Sungeun K. Jeon
Released under the MIT-license. See license.txt for details.
***********************************************************************/

#include <grbl.h>
#if 0
#include <Arduino.h>
#endif

// Do not alter this file!
喜欢 (0)