瀏覽代碼

Remove ancient BYTE define (causes more trouble than it's worth)

teensy4-core
PaulStoffregen 6 年之前
父節點
當前提交
92533cb5ce
共有 3 個檔案被更改,包括 8 行新增8 行删除
  1. +2
    -2
      keywords.txt
  2. +3
    -3
      teensy/Print.h
  3. +3
    -3
      teensy3/Print.h

+ 2
- 2
keywords.txt 查看文件

MillisTimer LITERAL1 MillisTimer LITERAL1
beginRepeating KEYWORD2 beginRepeating KEYWORD2


# removed by Arduino 1.0, but still in Teensyduino
BYTE LITERAL1
# removed by Arduino 1.0, now also removed from Teensyduino
#BYTE LITERAL1


# Arduino constants # Arduino constants
A0 LITERAL1 A0 LITERAL1

+ 3
- 3
teensy/Print.h 查看文件



// BYTE was defined in very old versions of Arduino // BYTE was defined in very old versions of Arduino
// maybe this now causes more trouble than it's worth? // maybe this now causes more trouble than it's worth?
#ifndef BYTE
#define BYTE 0
#endif
//#ifndef BYTE
//#define BYTE 0
//#endif


class __FlashStringHelper; class __FlashStringHelper;



+ 3
- 3
teensy3/Print.h 查看文件



// BYTE was defined in very old versions of Arduino // BYTE was defined in very old versions of Arduino
// maybe this now causes more trouble than it's worth? // maybe this now causes more trouble than it's worth?
#ifndef BYTE
#define BYTE 0
#endif
//#ifndef BYTE
//#define BYTE 0
//#endif


class __FlashStringHelper; class __FlashStringHelper;



Loading…
取消
儲存