 
     if(!state) {
         WiServer.init(sendMyPage);
-    }
+    } 
 
     // Run WiServer
     WiServer.server_task();

#include <Servo.h>
#include <WiServer.h>

byte thestart = 0;

#define WIRELESS_MODE_INFRA	1
#define WIRELESS_MODE_ADHOC	2

    WiServer.print ("</div></body></html>");
}

void arm() 
{
    unsigned long now = millis();
    
    // don't try rearming if we already tried earlier, this will confusing the APM
    if(now - lastArmTime < 6000) {
         return;
    }
    
    Serial.println("arming");
    throttleMotor.write(servoAngleForSpeed(0));
    yawMotor.write(servoAngleForSpeed(130));
    delay(5000);
    resetMotors();
    armed = 1;
    lastArmTime = now;
}
