PaulStoffregen 6 years ago
parent
commit
25d2728d7c
1 changed files with 0 additions and 4 deletions
  1. +0
    -4
      teensy3/usb_flightsim.cpp

+ 0
- 4
teensy3/usb_flightsim.cpp View File

} else if (type == 2) { } else if (type == 2) {
FlightSimFloat *item = FlightSimFloat::find(id); FlightSimFloat *item = FlightSimFloat::find(id);
if (!item) break; if (!item) break;
#ifdef KINETISK
data.f = *(float *)(p + 6);
#else
data.b[0] = p[6]; data.b[0] = p[6];
data.b[1] = p[7]; data.b[1] = p[7];
data.b[2] = p[8]; data.b[2] = p[8];
data.b[3] = p[9]; data.b[3] = p[9];
#endif
item->update(data.f); item->update(data.f);
} }
break; break;

Loading…
Cancel
Save