Compile error in r1171

This forum is dedicated to software development related to MultiWii.
It is not the right place to submit a setup problem.
Software download
Post Reply
KeesvR
Posts: 194
Joined: Fri May 27, 2011 6:51 pm
Location: The Netherlands

Compile error in r1171

Post by KeesvR »

In alarms line 188

      if (f.ARMED && f.ACC_MODE) useResource('G',1000,1000);



Should be

      if (f.ARMED && f.ANGLE_MODE) useResource('G',1000,1000);


doughboy
Posts: 252
Joined: Tue Sep 04, 2012 7:20 am

Re: Compile error in r1171

Post by doughboy »

thats a bug.

this is the code I posted to the pilotlamp thread
+ //==================GREEN LED===========================
+ if (f.ARMED && f.ANGLE_MODE) useResource('G',1000,1000);
+ else if (f.ARMED && f.HORIZON_MODE) useResource('G',100,1000);
+ else if (f.ARMED) useResource('G',1000,0);
+ else useResource('G',0,0); //switch off

Post Reply