HAL_VRBrain: fix compile warnings re float constants

This commit is contained in:
Tom Pittenger 2015-04-24 12:49:43 +09:00 committed by Randy Mackay
parent 7e18480cd2
commit ae6d44bf82
1 changed files with 1 additions and 1 deletions

View File

@ -311,7 +311,7 @@ AP_HAL::AnalogSource* VRBRAINAnalogIn::channel(int16_t pin)
{
for (uint8_t j=0; j<VRBRAIN_ANALOG_MAX_CHANNELS; j++) {
if (_channels[j] == NULL) {
_channels[j] = new VRBRAINAnalogSource(pin, 0.0);
_channels[j] = new VRBRAINAnalogSource(pin, 0.0f);
return _channels[j];
}
}