From 81d6f89003199f3577cd5214b2a2ddd216c9acc0 Mon Sep 17 00:00:00 2001 From: henryk Date: Fri, 23 Nov 2007 18:06:33 +0000 Subject: Add scale values to the field meter git-svn-id: https://svn.openpcd.org:2342/trunk@349 6dc7ffe9-61d6-0310-9af1-9938baff3ed1 --- openpicc/application/cmd.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/openpicc/application/cmd.c b/openpicc/application/cmd.c index d8a88df..6e5230e 100644 --- a/openpicc/application/cmd.c +++ b/openpicc/application/cmd.c @@ -426,6 +426,7 @@ void vCmdRecvUsbCode(void *pvParameters) { static portBASE_TYPE field_meter_enabled = 0; #define FIELD_METER_WIDTH 80 #define FIELD_METER_MAX_VALUE 160 +#define FIELD_METER_SCALE_FACTOR (FIELD_METER_MAX_VALUE/FIELD_METER_WIDTH) // A task to print the field strength as a bar graph void vFieldMeter(void *pvParameters) { (void) pvParameters; @@ -438,8 +439,10 @@ void vFieldMeter(void *pvParameters) { for(i=0; i