ERROR: Packet REJECTED, unsupported RF power for TX - 24

Wouldn’t that, along with the initialization of int pwr_level = 14;, yield that the minimum supported power level is now 14? (Even if an exact lower match exists.)