Closed jamorham closed 8 years ago
I think it would be better to have the system built with a .h file the user can edit and commit. This way you can easily #define the dex receiver ID and you can build it with whatever config settings you like with a makefile setting. For example put your different dex settings in their own directory and use -I mydex/ or -I kidsdex/ when you build it.
be aware you can use the xbridge2 software on an xdrip (even without the resistor circuit and the extra wire for the energy saving). https://raw.githubusercontent.com/jstevensog/wixel-sdk/master/apps/xBridge2/xBridge2.wxl If you install this and then use the latest beta of the android app, you can configure the transmitter id via the android app settings
As the transmitter_id could be considered personal information and I grew weary of re-pasting it in to the source, I thought moving it to a separate untracked file was a good idea.
The Makefile detects if the file exists and if it does it includes it which overrides the defaults in the dexdrip.c source file.
The external file would be apps/dexdrip/my_transmitter_id.h and would look much like this:
This pull request also defaults the alternate usb protocol to enabled.