Scott Miller wrote:
> Actually it should parse both Garmin and NMEA at the same time...
You are, of course, entirely correct. :) What threw me off was this bit
at the beginning of main():
if (config->amode == MODE_GARMIN || config->bmode ==
MODE_GARMIN) garmin_init();
else nmea_init();
In fact, nmea_init() is completely redundant :) since you specified
initializers for all those globals anyway. Well, even if you hadn't, it
would be redundant as globals with no initializer are zero'd by the
runtime when the program is loaded.
So, if you want to save some code space, you can drop the call to
nmea_init() and remove it entirely. :)
- michael
>
> Scott
>
> Michael Hordijk wrote:
>>
>>
>>
>> Michael Hordijk wrote:
>> > The manual and wiki don't seem to be entirely clear on this. I was
>> > wondering what happens when you've got one port in Garmin mode and
>> > feeding NMEA sentences to another? Which one will be used for GPS?
>>
>> Heh, never mind. Looking at the source code, it's garmin only mode if
>> either port is set to garmin. I love open source...
>>
>> - michael
>>
>>
>
>