瀏覽代碼

Fix more compiler warnings

teensy4-core
PaulStoffregen 10 年之前
父節點
當前提交
c4054203a7
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      teensy3/core_pins.h
  2. +1
    -1
      teensy3/usb_joystick.h

+ 1
- 1
teensy3/core_pins.h 查看文件

#elif defined(__MKL26Z64__) #elif defined(__MKL26Z64__)
#define CORE_NUM_TOTAL_PINS 27 #define CORE_NUM_TOTAL_PINS 27
#define CORE_NUM_DIGITAL 27 #define CORE_NUM_DIGITAL 27
#define CORE_NUM_INTERRUPT 18
#define CORE_NUM_INTERRUPT 24 // really only 18, but 6 "holes"
#define CORE_NUM_ANALOG 13 #define CORE_NUM_ANALOG 13
#define CORE_NUM_PWM 10 #define CORE_NUM_PWM 10
#endif #endif

+ 1
- 1
teensy3/usb_joystick.h 查看文件

if (!manual_mode) usb_joystick_send(); if (!manual_mode) usb_joystick_send();
} }
inline void hat(int dir) { inline void hat(int dir) {
uint32_t val;
uint32_t val = 0;
if (dir < 0) val = 15; if (dir < 0) val = 15;
else if (dir < 23) val = 0; else if (dir < 23) val = 0;
else if (dir < 68) val = 1; else if (dir < 68) val = 1;

Loading…
取消
儲存