Home ยป Hotfix 0.8.3.1

Hotfix 0.8.3.1

by Bits and Droids
Published: Last Updated on 5 comments

Sometimes when fixing bugs you introduce some new ones.

BitsAndDroids 2020… and every other developer in the world


Summary

  • End of line marker would be omitted when sending data to your Arduino
  • Altimeter skipped variables at strange intervals
  • Altimeter now returns an integer value (2991)
  • Altimeter calculations moved from library to connector.
  • Connector now remembers your output com port as well (the first one)

A very ancient bug that apparently has always been present was the missing of the end line marker. This could result in some weird behavior that, for some reason, usually worked out. In theory, that’s more luck than giving so thanks for reporting this issue. Sometimes all you need is a fresh pair of eyes. This should improve the sending of data to your Arduino significantly.
While I was at it, I started to see if the data reading could be improved (but this will be out in a future update).

You may also like

5 comments

James Smith March 14, 2021 - 8:47 am

Hi! Great work as ever and thank you so much for your continuing development.

I’m very much a newbie to your library so I may be doing something wrong, but I can’t get Connector (GUI) v0.8.3.1 to work. With Connector (GUI) v0.8.2 it works for me – I can tell MSFS to increase and decrease flaps. But with Connector v0.8.2 it does nothing (I don’t see any errors). I have not tried sending anything else to MSFS.

If I stop and start Connector v0.8.2 and Connector v0.8.3.1, I get the same results every time.

In both cases I am using the BitsAndDroids v0.8.3.1 library.

I am using an Elegoo Mega 2560.

Strange! ๐Ÿ˜‰ If you would like any more info please let me know of course.

Bits and Droids March 14, 2021 - 9:09 am

Good morning James,

Thanks for the report. You are the second person to experience this so that tells me that is something going wrong underneath the skin. I’ll do some further investigations and get back to you when I know more!

James Smith March 14, 2021 - 10:46 am

Thank you and best of luck! Just in case it is of any relevance, I am not using a capacitor between reset and ground with my Mega2560 (I am not receiving comms from MSFS).

Bits and Droids March 14, 2021 - 11:10 am

Ok there are 2 fixes. Either download the file again (there is a small fix in it). OR add another input connection using the plus button next to start. This should save a setting that on a fresh file was set to NULL (meaning nonexistent). The logic when pressing start checks this setting (the number of connections) and starts listening to your comports based on how many connections you’ve defined. What went wrong is that if the amount of connections is NULL hitting start would also start NULL connections. The setting is stored permanently so hitting the plus sign once should fix it(if you don’t want to re-download the file).

James Smith March 16, 2021 - 7:50 am

Many thanks for the fixes. I tried both methods and they both worked for me. Terrific!
One small thing for the list lol: In Connector, if you have 2 inputs where one input is valid (e.g. COM4) but one below is blank, when you click Start, Connector closes itself. This seems to happen on all the versions of Connector I have tried.

Leave a Comment

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept