Browse Source

Fix more compiler warnings

main
PaulStoffregen 9 years ago
parent
commit
c4054203a7
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      teensy3/core_pins.h
  2. +1
    -1
      teensy3/usb_joystick.h

+ 1
- 1
teensy3/core_pins.h View File

#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 View File

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…
Cancel
Save