aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErik Gilling <konkers@android.com>2011-05-06 08:37:36 -0700
committerErik Gilling <konkers@android.com>2011-05-06 08:37:56 -0700
commit06987fc7d6a31f7b4dda406beec7d685a727be4b (patch)
treed1d70ba8c7d3a29f651c6fa448880d51ad263a54
parent4de77996b19a3851675080072f029b0c7d0865ff (diff)
downloaddemokit-06987fc7d6a31f7b4dda406beec7d685a727be4b.tar.gz
fix degree character in temperature readout
Change-Id: Id9c370e486400afb9d94b705a94d3f9db8e938d7 Signed-off-by: Erik Gilling <konkers@android.com>
-rw-r--r--app/src/com/google/android/DemoKit/InputController.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/app/src/com/google/android/DemoKit/InputController.java b/app/src/com/google/android/DemoKit/InputController.java
index 04624ea..4c3ad5a 100644
--- a/app/src/com/google/android/DemoKit/InputController.java
+++ b/app/src/com/google/android/DemoKit/InputController.java
@@ -15,7 +15,7 @@ public class InputController extends AccessoryController {
ArrayList<SwitchDisplayer> mSwitchDisplayers;
private final DecimalFormat mLightValueFormatter = new DecimalFormat("##.#");
private final DecimalFormat mTemperatureFormatter = new DecimalFormat(
- "###¼");
+ "###" + (char)0x00B0);
InputController(DemoKitActivity hostActivity) {
super(hostActivity);
@@ -44,10 +44,10 @@ public class InputController extends AccessoryController {
double voltagemv = temperatureFromArduino * 4.9;
/*
* The change in voltage is scaled to a temperature coefficient of 10.0
- * mV/¡C (typical) for the MCP9700/9700A and 19.5 mV/¡C (typical) for
- * the MCP9701/9701A. The out- put voltage at 0¡C is also scaled to 500
- * mV (typical) and 400 mV (typical) for the MCP9700/9700A and
- * MCP9701/9701A, respectively. VOUT = TC¥TA+V0¡C
+ * mV/degC (typical) for the MCP9700/9700A and 19.5 mV/degC (typical)
+ * for the MCP9701/9701A. The out- put voltage at 0 degC is also scaled
+ * to 500 mV (typical) and 400 mV (typical) for the MCP9700/9700A and
+ * MCP9701/9701A, respectively. VOUT = TC¥TA+V0degC
*/
double kVoltageAtZeroCmv = 400;
double kTemperatureCoefficientmvperC = 19.5;