diff options
Diffstat (limited to 'apps/buffering.c')
-rw-r--r-- | apps/buffering.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/buffering.c b/apps/buffering.c index 46b6455178..8d41324190 100644 --- a/apps/buffering.c +++ b/apps/buffering.c | |||
@@ -119,7 +119,7 @@ static volatile size_t buf_ridx; /* current reading position */ | |||
119 | 119 | ||
120 | /* Configuration */ | 120 | /* Configuration */ |
121 | static size_t conf_watermark = 0; /* Level to trigger filebuf fill */ | 121 | static size_t conf_watermark = 0; /* Level to trigger filebuf fill */ |
122 | #if MEM > 8 | 122 | #if MEMORYSIZE > 8 |
123 | static size_t high_watermark = 0; /* High watermark for rebuffer */ | 123 | static size_t high_watermark = 0; /* High watermark for rebuffer */ |
124 | #endif | 124 | #endif |
125 | 125 | ||
@@ -1509,7 +1509,7 @@ void buffering_thread(void) | |||
1509 | #if 0 | 1509 | #if 0 |
1510 | /* TODO: This needs to be fixed to use the idle callback, disable it | 1510 | /* TODO: This needs to be fixed to use the idle callback, disable it |
1511 | * for simplicity until its done right */ | 1511 | * for simplicity until its done right */ |
1512 | #if MEM > 8 | 1512 | #if MEMORYSIZE > 8 |
1513 | /* If the disk is spinning, take advantage by filling the buffer */ | 1513 | /* If the disk is spinning, take advantage by filling the buffer */ |
1514 | else if (storage_disk_is_active() && queue_empty(&buffering_queue)) | 1514 | else if (storage_disk_is_active() && queue_empty(&buffering_queue)) |
1515 | { | 1515 | { |
@@ -1589,7 +1589,7 @@ bool buffering_reset(char *buf, size_t buflen) | |||
1589 | base_handle_id = -1; | 1589 | base_handle_id = -1; |
1590 | 1590 | ||
1591 | /* Set the high watermark as 75% full...or 25% empty :) */ | 1591 | /* Set the high watermark as 75% full...or 25% empty :) */ |
1592 | #if MEM > 8 | 1592 | #if MEMORYSIZE > 8 |
1593 | high_watermark = 3*buflen / 4; | 1593 | high_watermark = 3*buflen / 4; |
1594 | #endif | 1594 | #endif |
1595 | 1595 | ||