[Horus] Missing pulses code

This commit is contained in:
Bertrand Songis
2016-01-22 22:07:37 +01:00
parent 8eb3480acc
commit d2ec99513c
2 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -35,7 +35,7 @@ void setupPulses(unsigned int port)
heartbeat |= (HEART_TIMER_PULSES << port);
switch (port) {
#if defined(PCBTARANIS)
#if defined(PCBTARANIS) || defined(PCBHORUS)
case INTERNAL_MODULE:
#if defined(TARANIS_INTERNAL_PPM)
switch (g_model.moduleData[INTERNAL_MODULE].type) {
@@ -83,7 +83,7 @@ void setupPulses(unsigned int port)
}
break;
#endif
#if defined(PCBTARANIS) && defined(CROSSFIRE)
#if defined(CROSSFIRE)
case MODULE_TYPE_CROSSFIRE:
required_protocol = PROTO_CROSSFIRE;
break;
+3 -2
View File
@@ -104,7 +104,7 @@ inline void startPulses()
{
s_pulses_paused = false;
#if defined(PCBTARANIS)
#if defined(PCBTARANIS) || defined(PCBHORUS)
setupPulses(INTERNAL_MODULE);
setupPulses(EXTERNAL_MODULE);
#else
@@ -124,8 +124,9 @@ inline void resumePulses() { s_pulses_paused = false; }
inline void SEND_FAILSAFE_1S()
{
for (int i=0; i<NUM_MODULES; i++)
for (int i=0; i<NUM_MODULES; i++) {
failsafeCounter[i] = 100;
}
}
#endif // _PULSES_ARM_H_