Temperature sign removed from tdtool in windows. Closes #166
This commit is contained in:
parent
6289a1138e
commit
430871bebf
1 changed files with 4 additions and 1 deletions
|
@ -7,6 +7,9 @@
|
||||||
|
|
||||||
#ifdef _WINDOWS
|
#ifdef _WINDOWS
|
||||||
#define strcasecmp _stricmp
|
#define strcasecmp _stricmp
|
||||||
|
#define DEGREE " "
|
||||||
|
#else
|
||||||
|
#define DEGREE "°"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
const int SUPPORTED_METHODS =
|
const int SUPPORTED_METHODS =
|
||||||
|
@ -142,7 +145,7 @@ int list_devices() {
|
||||||
|
|
||||||
if (dataTypes & TELLSTICK_TEMPERATURE) {
|
if (dataTypes & TELLSTICK_TEMPERATURE) {
|
||||||
tdSensorValue(protocol, model, sensorId, TELLSTICK_TEMPERATURE, tempvalue, DATA_LENGTH, (int *)×tamp);
|
tdSensorValue(protocol, model, sensorId, TELLSTICK_TEMPERATURE, tempvalue, DATA_LENGTH, (int *)×tamp);
|
||||||
strcat(tempvalue, "°");
|
strcat(tempvalue, DEGREE);
|
||||||
strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(×tamp));
|
strftime(timeBuf, sizeof(timeBuf), "%Y-%m-%d %H:%M:%S", localtime(×tamp));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue