Skip to content

Commit

Permalink
removed unecessary commented items from old code
Browse files Browse the repository at this point in the history
  • Loading branch information
vtHydroponics committed Nov 5, 2024
1 parent 3f33616 commit cbf9f1c
Showing 1 changed file with 2 additions and 15 deletions.
17 changes: 2 additions & 15 deletions tasmota/tasmota_xsns_sensor/xsns_116_ms5837.ino
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
xsns_116_ms5837.ino - BlueRobotics MS5837 pressure sensor support for Tasmota
xsns_116_ms5837.ino - BlueRobotics MS5837 pressure and temperature sensor support for Tasmota
Copyright (C) 2022 Theo Arends, Stefan Tibus
Expand Down Expand Up @@ -56,11 +56,6 @@ void MS5837init(void) {
}

#ifdef USE_WEBSERVER
// const char HTTP_SNS_MS5837_DEFAULT[] PROGMEM =
// "{s}MS5837 Temperature {m}%s " D_UNIT_DEGREE "%c{e}{s}MS5837 Pressure {m}%s %s{e}"; // {s} = <tr><th>, {m} = </th><td>, {e} = </td></tr>
// const char HTTP_SNS_MS5837_INCHES_WATER[] PROGMEM =
// "{s}Inches Water {m}%s in{e}"; // {s} = <tr><th>, {m} = </th><td>, {e} = </td></tr>
// char HTTP_SNS_MS5837_DUAL[118];
const char name_str[] PROGMEM = "MS5837";
#endif // USE_WEBSERVER

Expand Down Expand Up @@ -95,14 +90,6 @@ void MS5837Show(bool json) {

#ifdef USE_WEBSERVER
} else {
// if (I2cEnabled(XI2C_10)) {
// strncat(HTTP_SNS_MS5837_DUAL,HTTP_SNS_MS5837_DEFAULT,sizeof(HTTP_SNS_MS5837_DUAL));
// strncat(HTTP_SNS_MS5837_DUAL,HTTP_SNS_MS5837_INCHES_WATER,sizeof(HTTP_SNS_MS5837_DUAL));
// WSContentSend_PD(HTTP_SNS_MS5837_DUAL, temperature_str, TempUnit(), pressure_str, PressureUnit().c_str(), cmWater_str);
// }
// else {
// WSContentSend_PD(HTTP_SNS_MS5837_DEFAULT, temperature_str, TempUnit(), pressure_str, PressureUnit().c_str());
// }
WSContentSend_PD(HTTP_SNS_F_TEMP, name_str, Settings->flag2.temperature_resolution, &ms5837Temp, TempUnit());
WSContentSend_PD(HTTP_SNS_PRESSURE, name_str, pressure_str, PressureUnit().c_str());
if (I2cEnabled(XI2C_10)) {
Expand Down Expand Up @@ -158,4 +145,4 @@ bool Xsns116(uint32_t function) {
}

#endif // USE_MS5837
#endif // USE_I2C
#endif // USE_I2C

0 comments on commit cbf9f1c

Please sign in to comment.