multiwii / baseflight

32 bit fork of the MultiWii RC flight controller firmware
500 stars 356 forks source link

Number of telemetry ports needs to be reset to zero on each SerialInit... #171

Closed Sonnenfleck closed 10 years ago

Sonnenfleck commented 10 years ago

... call.

Otherwise the for-loop in SerialCom gets out of bounds and the Naze32 would lock up when armed (if feature TELEMETRY is enabled).

trollcop commented 10 years ago

I think there's probably a better way to handle this.

trollcop commented 10 years ago

Oh, i see what the problem is. Yeah, that's the way to fix it. Too bad the indentation is incorrect, can you please fix that and re-commit.