jerabaul29 / OpenMetBuoy-v2021a

An easy to build, affordable, customizable, open source instrument for oceanographic measurements - with global Iridium coverage
MIT License
43 stars 7 forks source link

when generating the 6-bit IDs for the DS18B20, use the most significant of the least significant bits so that ordering is the same as if taking the full ID #99

Open jerabaul29 opened 1 month ago

jerabaul29 commented 1 month ago

consider here:

https://github.com/jerabaul29/OpenMetBuoy-v2021a/blob/998e556c689e24f083fd7f4b61fad547bdc01645/legacy_firmware/firmware/standard_gps_waves_thermistors_drifter/thermistors_manager.cpp#L50

using instead:

byte byte_result = byte_to_use & 0b11111100;