 }
 // ----------------------------------------------------------------------------
 void incBand() {
-    if (bandIndex < 7) {
+    if (bandIndex < MAX_BAND) {
         bandIndex++;
     }
     setChannelModule(channelIndex, bandIndex);

}
// ----------------------------------------------------------------------------
void setBand(uint8_t band) {
    if (band >= 0 && band <= 5) {
        bandIndex = band;
        setChannelModule(channelIndex, bandIndex);
        wait_rssi_ready();


    voltageA = voltageA/VOLTAGE_READS; // average of RSSI_READS readings
    return voltageA;
}
