Browse Source

Patch missing const in temp_abs

Scott Lahteine 8 years ago
parent
commit
2e61c1fb37
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      Marlin/configuration_store.cpp

+ 1
- 1
Marlin/configuration_store.cpp View File

1257
       CONFIG_ECHO_START;
1257
       CONFIG_ECHO_START;
1258
       #if ENABLED(TEMPERATURE_UNITS_SUPPORT)
1258
       #if ENABLED(TEMPERATURE_UNITS_SUPPORT)
1259
         extern TempUnit input_temp_units;
1259
         extern TempUnit input_temp_units;
1260
-        extern float temp_abs(float &f);
1260
+        extern float temp_abs(const float &f);
1261
         #define TEMP_UNIT(N) temp_abs(N)
1261
         #define TEMP_UNIT(N) temp_abs(N)
1262
         SERIAL_ECHOPGM("  M149 ");
1262
         SERIAL_ECHOPGM("  M149 ");
1263
         SERIAL_CHAR(input_temp_units == TEMPUNIT_K ? 'K' : input_temp_units == TEMPUNIT_F ? 'F' : 'C');
1263
         SERIAL_CHAR(input_temp_units == TEMPUNIT_K ? 'K' : input_temp_units == TEMPUNIT_F ? 'F' : 'C');

Loading…
Cancel
Save