Skip to content
Snippets Groups Projects
  • Martine Lenders's avatar
    19bf230d
    auto_init: use full hash to configure radio address · 19bf230d
    Martine Lenders authored
    Since the 4-byte CPU ID on native is in most cases generated from the 2-byte
    PID of the native process, choosing the lower half of the hash of the CPU ID to
    set the radio address led to always setting it to the hash of 0 in this
    cases. This changes it to use both halves of the hash and taking the
    modulus so this corner cases can be avoided.
    19bf230d
    History
    auto_init: use full hash to configure radio address
    Martine Lenders authored
    Since the 4-byte CPU ID on native is in most cases generated from the 2-byte
    PID of the native process, choosing the lower half of the hash of the CPU ID to
    set the radio address led to always setting it to the hash of 0 in this
    cases. This changes it to use both halves of the hash and taking the
    modulus so this corner cases can be avoided.