Sfoglia il codice sorgente

Fix more compiler warnings

main
PaulStoffregen 9 anni fa
parent
commit
c4054203a7
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. +1
    -1
      teensy3/core_pins.h
  2. +1
    -1
      teensy3/usb_joystick.h

+ 1
- 1
teensy3/core_pins.h Vedi File

@@ -108,7 +108,7 @@
#elif defined(__MKL26Z64__)
#define CORE_NUM_TOTAL_PINS 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_PWM 10
#endif

+ 1
- 1
teensy3/usb_joystick.h Vedi File

@@ -105,7 +105,7 @@ class usb_joystick_class
if (!manual_mode) usb_joystick_send();
}
inline void hat(int dir) {
uint32_t val;
uint32_t val = 0;
if (dir < 0) val = 15;
else if (dir < 23) val = 0;
else if (dir < 68) val = 1;

Loading…
Annulla
Salva