Combine the hardware and software ATT support into one single value to
be continues from 0 to -85db.
The hardware ATT is prefered and used first. The following tables
shows the caculation. The software ATT is changed to add three values
that are shift by certain bits. So that we can simulate 1-15 db ATT via
software.
Before:
Sketch uses 27106 bytes (88%) of program storage space. Maximum is 30720 bytes.
Global variables use 1291 bytes (63%) of dynamic memory, leaving 757 bytes for local variables. Maximum is 2048 bytes.
After:
Sketch uses 27316 bytes (88%) of program storage space. Maximum is 30720 bytes.
Global variables use 1235 bytes (60%) of dynamic memory, leaving 813 bytes for local variables. Maximum is 2048 bytes.
Combine the hardware and software ATT support into one single value to be continues from 0 to -85db.
The hardware ATT is prefered and used first. The following tables shows the caculation. The software ATT is changed to add three values that are shift by certain bits. So that we can simulate 1-15 db ATT via software.
0 - 12 => software 13 - 19 => -13 hardware + software 20 - 32 => -20 hardware + software 33 - 39 => -20 + -13 hardware + software 40 - 52 => -40 hardware + software 53 - 59 => -40 + -13 hardware + software 60 - 72 => -40 + -20 hardware + software 73 - 85 => -40 + -20 + -13 hardware + software -12
Before: Sketch uses 27106 bytes (88%) of program storage space. Maximum is 30720 bytes. Global variables use 1291 bytes (63%) of dynamic memory, leaving 757 bytes for local variables. Maximum is 2048 bytes.
After: Sketch uses 27316 bytes (88%) of program storage space. Maximum is 30720 bytes. Global variables use 1235 bytes (60%) of dynamic memory, leaving 813 bytes for local variables. Maximum is 2048 bytes.