summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorDan Everton <dan@iocaine.org>2006-03-05 20:37:56 +0000
committerDan Everton <dan@iocaine.org>2006-03-05 20:37:56 +0000
commitd11f15fcc3b20a1c7a7226aeb8e100c5b6ed6234 (patch)
tree9a5f81632fe284048fc339104ca927dfd7f0f5d6 /apps
parent3caf7a6b3fe4bae9ae360ff74a3af8d7f3c4dc98 (diff)
Fix red sim builds.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@8919 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
-rw-r--r--apps/plugins/oscillograph.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/apps/plugins/oscillograph.c b/apps/plugins/oscillograph.c
index a8d3243444..ed0e7a87af 100644
--- a/apps/plugins/oscillograph.c
+++ b/apps/plugins/oscillograph.c
@@ -84,6 +84,10 @@ PLUGIN_HEADER
#endif
+#if SIMULATOR && (CONFIG_CODEC != SWCODEC)
+#define mas_codec_readreg(x) rand()%MAX_PEAK
+#endif
+
/* global api struct pointer */
static struct plugin_api* rb;
/* number of ticks between two volume samples */