From 32c76562d69c24bfb0d98ce335dea2368f0a7a1f Mon Sep 17 00:00:00 2001 From: Tollef Fog Heen Date: Mon, 2 Feb 2009 08:10:49 +0100 Subject: [PATCH] If we get something we do not understand, quit --- TEMPer.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/TEMPer.c b/TEMPer.c index df2f864..2cdeb74 100644 --- a/TEMPer.c +++ b/TEMPer.c @@ -344,6 +344,8 @@ double ReadTEMP(void) case '1': temperature = -(2048.0 - tempdata) * 0.125; break; + default: + exit (7); } return temperature; -- 2.39.5