SX1276 transmission power managment

i’m not using RF96/95, this lora bee uses the sx1276, and about the antenna if is it connected to PA_BOOST or the RFO, i don’t know, i didn’t even though that is an option, though the antenna suppose to work for both, i guess i need to check that out. now after i have checked the raspi-lora library, i found this :

       if self._tx_power < 20:
            self._spi_write(REG_4D_PA_DAC, PA_DAC_ENABLE) # enable the +20 dBm option, `0x07`
            self._tx_power -= 3
        else:
            self._spi_write(REG_4D_PA_DAC, PA_DAC_DISABLE) # disable the option, `0x04`

which is the opposite of what should happen, and after that i checked the PA_BOOST register and it’s always enabled, which mean this library use all the time the PA_BOOST. i guess the antenne is connected to that PA_BOOST pin. and about the 20 dBm option the description in the datasheet said this option will Set Pmax to +20dBm for PA_HP doesn’t that mean "Pout=Pmax-(15-OutputPower) " will become “Pout=20-(15-OutputPower)” ?!