Skip to content
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.

Commit

Permalink
px4iofirmware: disable perf counters in IO (HOTFIX)
Browse files Browse the repository at this point in the history
we are running desperately short of memory in px4io. With a complex
fixed wing setup using 12 channels we are running out of memory due to
mixers for failsafe. Disabling perf counters saves us 800 bytes of
memory
  • Loading branch information
tridge committed Mar 24, 2016
1 parent 9be7831 commit f11d76c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/px4iofirmware/px4io.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,12 @@

#include <systemlib/pwm_limit/pwm_limit.h>

/*
hotfix: we are critically short of memory in px4io and this is the
easiest way to reclaim about 800 bytes.
*/
#define perf_alloc(a,b) NULL

/*
* Constants and limits.
*/
Expand Down

0 comments on commit f11d76c

Please sign in to comment.