Subversion Repositories HomeAutomation

Rev

Rev 339 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | SVN | RSS feed

Rev 339 Rev 342
Line 2... Line 2...
2
 *
2
 *
3
 *                  Main application
3
 *                  Main application
4
 *
4
 *
5
 *********************************************************************
5
 *********************************************************************
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Source/Main.c $
6
 * FileName:        $HeadURL: https://svn.auml.se/svn/HomeAutomation/trunk/EmbeddedSoftware/PIC/canTemp/Source/Main.c $
7
 * Last changed:    $LastChangedDate: 2007-02-25 20:51:08 +0100 (Sun, 25 Feb 2007) $
7
 * Last changed:    $LastChangedDate: 2007-02-26 21:38:37 +0100 (Mon, 26 Feb 2007) $
8
 * By:              $LastChangedBy: johboh $
8
 * By:              $LastChangedBy: johboh $
9
 * Revision:        $Revision: 339 $
9
 * Revision:        $Revision: 342 $
10
 ********************************************************************/
10
 ********************************************************************/
11
 
11
 
12
 
12
 
13
#include <compiler.h>
13
#include <compiler.h>
14
#include <stackTasks.h>
14
#include <stackTasks.h>
Line 103... Line 103...
103
 
103
 
104
            outCp.type=ptPGM;
104
            outCp.type=ptPGM;
105
            outCp.pgm.class =pcSENSOR;
105
            outCp.pgm.class =pcSENSOR;
106
            outCp.pgm.id    =(lastTemperature==TEMPERATURE_INSIDE?pstTEMP_INSIDE:pstTEMP_OUTSIDE);
106
            outCp.pgm.id    =(lastTemperature==TEMPERATURE_INSIDE?pstTEMP_INSIDE:pstTEMP_OUTSIDE);
107
            outCp.length    =2;
107
            outCp.length    =2;
108
            outCm.data[1]   = tenth; //  signed 10 an 1 decimal.
108
            outCp.data[1]   = tenth; //  signed 10 an 1 decimal.
109
            outCm.data[0]   = decimal; //  Decimal value, 0-9
109
            outCp.data[0]   = decimal; //  Decimal value, 0-9
110
            while(!canSendMessage(outCm,PRIO_HIGH));
110
            while(!canSendMessage(outCp,PRIO_HIGH));
111
        }
111
        }
112
        #endif
112
        #endif
113
 
113
 
114
    }
114
    }
115
}
115
}