]> err.no Git - temper/commitdiff
If we get something we do not understand, quit
authorTollef Fog Heen <tfheen@err.no>
Mon, 2 Feb 2009 07:10:49 +0000 (08:10 +0100)
committerTollef Fog Heen <tfheen@err.no>
Mon, 2 Feb 2009 07:10:49 +0000 (08:10 +0100)
TEMPer.c

index df2f86481ef2239dc5cdfd55fe26390ec7136b92..2cdeb744d2fba1bd752c52ea2b58a9f0184d8713 100644 (file)
--- 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;