moved dbeacon's scaling of beacon interval code into a separate function for clarity
moved dbeacon's scaling of beacon interval code into a separate function for clarity


hugosantos/dbeacon,hugosantos/dbeacon,hugosantos/dbeacon