Changeset 5190c4


Ignore:
Timestamp:
01/12/12 14:40:43 (4 months ago)
Author:
Micke Prag <micke.prag@…>
Branches:
('master', 'deebf2045e7119c339412580f37a1e653f7d5715')('controller-upgrade', '00f95d22e12d96ef089e0902ef62ae8ce841dc6f')
Children:
46d70ad4515a3d73d7e2f1680a0ee348b65ee2fd
Parents:
01855cac968f05755723356ac8582602264fbffb
git-author:
Micke Prag <micke.prag@telldus.se>2012-01-12 11:20:15+01:00
git-committer:
Micke Prag <micke.prag@telldus.se>2012-01-12 14:40:43+01:00
Message:

Fixed indentation (space to tabs)

File:
1 edited

Legend:

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

    r554601 r5190c4  
    139139 
    140140                if (dataTypes & TELLSTICK_TEMPERATURE) { 
    141                   tdSensorValue(protocol, model, sensorId, TELLSTICK_TEMPERATURE, tempvalue, DATA_LENGTH, (int *)&timestamp); 
    142                   strcat(tempvalue, "°"); 
    143                   strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(&timestamp)); 
     141                        tdSensorValue(protocol, model, sensorId, TELLSTICK_TEMPERATURE, tempvalue, DATA_LENGTH, (int *)&timestamp); 
     142                        strcat(tempvalue, "°"); 
     143                        strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(&timestamp)); 
    144144                } 
    145145 
    146146                if (dataTypes & TELLSTICK_HUMIDITY) { 
    147                   tdSensorValue(protocol, model, sensorId, TELLSTICK_HUMIDITY, humidityvalue, DATA_LENGTH, (int *)&timestamp); 
    148                   strcat(humidityvalue, "%"); 
    149                   strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(&timestamp)); 
     147                        tdSensorValue(protocol, model, sensorId, TELLSTICK_HUMIDITY, humidityvalue, DATA_LENGTH, (int *)&timestamp); 
     148                        strcat(humidityvalue, "%"); 
     149                        strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(&timestamp)); 
    150150                } 
    151151                printf("%-20s\t%-20s\t%-5i\t%-5s\t%-8s\t%-20s\n", protocol, model, sensorId, tempvalue, humidityvalue, timeBuf); 
Note: See TracChangeset for help on using the changeset viewer.