1923 } |
1923 } |
1924 if (Config.temp_address) { |
1924 if (Config.temp_address) { |
1925 snprintf(room_temp, 39, "%.3f", Config.temp_value / 1000.0); |
1925 snprintf(room_temp, 39, "%.3f", Config.temp_value / 1000.0); |
1926 } |
1926 } |
1927 |
1927 |
1928 snprintf(buf, 1023, "%s,%.3f,%.3f,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%.3f", |
1928 snprintf(buf, 1023, "%s,%.3f,%.3f,%s,%s,%s,%s,%s,%s,%s,%s,%s,%s,%.3f,%s", |
1929 UNITMODE[unit->mode], unit->air_temperature / 1000.0, |
1929 UNITMODE[unit->mode], unit->air_temperature / 1000.0, |
1930 unit->beer_temperature / 1000.0, |
1930 unit->beer_temperature / 1000.0, |
1931 target_lo, heater, cooler, fan, door, use_heater, use_cooler, use_fan, room_temp, target_hi, |
1931 target_lo, heater, cooler, fan, door, use_heater, use_cooler, use_fan, room_temp, target_hi, |
1932 unit->chiller_temperature / 1000.0); |
1932 unit->chiller_temperature / 1000.0, |
|
1933 (unit->event_msg) ? unit->event_msg : (char *)""); |
1933 filename = xstrcpy(unit->product_code); |
1934 filename = xstrcpy(unit->product_code); |
1934 filename = xstrcat(filename, (char *)" "); |
1935 filename = xstrcat(filename, (char *)" "); |
1935 filename = xstrcat(filename, unit->product_name); |
1936 filename = xstrcat(filename, unit->product_name); |
1936 filename = xstrcat(filename, (char *)".log"); |
1937 filename = xstrcat(filename, (char *)".log"); |
1937 logger(filename, buf); |
1938 logger(filename, buf); |