woglom / multiwii

Automatically exported from code.google.com/p/multiwii
0 stars 0 forks source link

r1729 incorrect enum for ALRM_LVL_GPS_NOFIX #14

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Fit / enable buzzer
2. Power up board with GPS but no fix
3.

What is the expected output? What do you see instead?
Expected: LED indicates no fix, buzzer is silent
Actual: buzzer sounds continuously

What version of the product are you using? On what operating system?
2.4.0r1729 on mega2560

Please provide any additional information below.

Incorrect assignment of enum compared to MW-NAV-b7. In Alarm.h, c. line 79 
currently sets ALRM_LVL_GPS_NOFIX  = 1, the fix is:

#if GPS
  enum alrm_lvl_gps {
   ALRM_LVL_GPS_NOFIX  = 2,
  };
#endif

This restores expected behaviour.

Original issue reported on code.google.com by jonathan...@gmail.com on 7 Dec 2014 at 3:33