From e5f4284c502b756ef19ebc02da0359418aae0379 Mon Sep 17 00:00:00 2001 From: asterix Date: Mon, 17 Oct 2011 17:20:18 +0000 Subject: [PATCH] Fix potentiometer bar. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@5166 38d2e660-2303-0410-9eaa-f027e97ec537 --- .../examples/sam3x-ek_http_server/sd_data/index.htm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm index 551a7e38..5879008a 100644 --- a/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm +++ b/boards/sam3x-ek/examples/sam3x-ek_http_server/sd_data/index.htm @@ -82,8 +82,8 @@ dataType :'json', success: function(data){ - $('#trigger-value').width(200*(parseFloat(data['volt'])/3.5)); - $('#uptime').text(data['up_time']+' sec'); + $('#potentiometer').width(200*(parseInt(data['volt'])/4096)); + $('#uptime').text(data['up_time'] +' sec'); $('#temperature').text(data['temp']+' °C'); temperature_data.push([data['up_time'],data['temp']]); @@ -140,7 +140,7 @@
Potentiometer Value:
-   +  
-- 2.25.1