in config file:
The threshold is calculated as “at least this much”, next value will be selected by firmware if sensor does not support value selected. The resolution is the least significant bit of accelerometer at selected range, 4 mG at 2 G range if I recall correctly. Maximum is half of full range if I recall correctly.
The DFU package generation scripts are at ruuvi.firmware.c/src/targets/ruuvitag_b/armgcc at master · ruuvi/ruuvi.firmware.c · GitHub, you can just commit your changes to git and run “make” at src folder. It will generate the packages for you, named after the git commit or tag name if you have tagged the commit.