Changeset 430871


Ignore:
Timestamp:
01/24/12 17:40:55 (4 months ago)
Author:
Stefan Persson <stefan.persson@…>
Branches:
('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
Children:
e69f7abba82ffdcb5f6bc755d4eb4f009cbfe0d1
Parents:
6289a1138e14301ba99e1ffbd7cce53b99dfcf0d
git-author:
Stefan Persson <stefan.persson@telldus.se>2012-01-24 17:40:55+01:00
git-committer:
Stefan Persson <stefan.persson@telldus.se>2012-01-24 17:40:55+01:00
Message:

Temperature sign removed from tdtool in windows. Closes #166

File:
1 edited

Legend:

Unmodified
Added
Removed
  • telldus-core/tdtool/main.cpp

    r6289a1 r430871  
    88#ifdef _WINDOWS 
    99#define strcasecmp _stricmp 
     10#define DEGREE " " 
     11#else 
     12#define DEGREE "°" 
    1013#endif 
    1114 
     
    143146                if (dataTypes & TELLSTICK_TEMPERATURE) { 
    144147                        tdSensorValue(protocol, model, sensorId, TELLSTICK_TEMPERATURE, tempvalue, DATA_LENGTH, (int *)&timestamp); 
    145                         strcat(tempvalue, "°"); 
     148                        strcat(tempvalue, DEGREE); 
    146149                        strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(&timestamp)); 
    147150                } 
Note: See TracChangeset for help on using the changeset viewer.