Raspberry PI 4, PandaPi 2.0, latest img and after doing a Raspian update.
I do not have a heated bed at the moment. TEMP_SENSOR_BED set to 0.
Here's the output from running make on an SSH session in /home/pi/PandaPi/Marlin2.x/pandapi:
pi@octopi:~/PandaPI/Marlin2.x/pandapi $ make
In file included from src/module/temperature.cpp:27:
src/module/temperature.h: In static member function âstatic void Temperature::setTargetHotend(int16_t, uint8_t)â:
src/module/temperature.h:660:17: warning: comparison of integer expressions of different signedness: âintâ and âsize_tâ {aka âunsigned intâ} [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
src/module/temperature.h: In static member function âstatic void Temperature::updatePID()â:
src/module/temperature.h:90:48: warning: array subscript has type âcharâ [-Wchar-subscripts]
#define _PID_Kp(H) Temperature::temp_hotend[H].pid.Kp
^
src/module/temperature.h:111:24: note: in expansion of macro â_PID_Kpâ
#define PID_PARAM(F,H) _PID_##F(H)
^~~~~
src/module/temperature.h:843:30: note: in expansion of macro âPID_PARAMâ
sprintf(tmp_data,"K%.5f;",PID_PARAM(Kp, e));
^~~~~~~~~
In file included from src/module/temperature.cpp:27:
src/module/temperature.h:845:17: warning: comparison of integer expressions of different signedness: âintâ and âsize_tâ {aka âunsigned intâ} [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
In file included from src/module/temperature.cpp:27:
src/module/temperature.h:91:48: warning: array subscript has type âcharâ [-Wchar-subscripts]
#define _PID_Ki(H) Temperature::temp_hotend[H].pid.Ki
^
src/module/temperature.h:111:24: note: in expansion of macro â_PID_Kiâ
#define PID_PARAM(F,H) _PID_##F(H)
^~~~~
src/module/temperature.h:859:30: note: in expansion of macro âPID_PARAMâ
sprintf(tmp_data,"I%.5f;",PID_PARAM(Ki, e)/1000.0);
^~~~~~~~~
In file included from src/module/temperature.cpp:27:
src/module/temperature.h:861:17: warning: comparison of integer expressions of different signedness: âintâ and âsize_tâ {aka âunsigned intâ} [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
In file included from src/module/temperature.cpp:27:
src/module/temperature.h:92:48: warning: array subscript has type âcharâ [-Wchar-subscripts]
#define _PID_Kd(H) Temperature::temp_hotend[H].pid.Kd
^
src/module/temperature.h:111:24: note: in expansion of macro â_PID_Kdâ
#define PID_PARAM(F,H) _PID_##F(H)
^~~~~
src/module/temperature.h:875:30: note: in expansion of macro âPID_PARAMâ
sprintf(tmp_data,"D%.5f;",PID_PARAM(Kd, e));
^~~~~~~~~
In file included from src/module/temperature.cpp:27:
src/module/temperature.h:877:17: warning: comparison of integer expressions of different signedness: âintâ and âsize_tâ {aka âunsigned intâ} [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
src/module/temperature.cpp: In static member function âstatic void Temperature::set_fan_speed(uint8_t, uint16_t)â:
src/module/temperature.cpp:209:15: warning: comparison of integer expressions of different signedness: âintâ and âsize_tâ {aka âunsigned intâ} [-Wsign-compare]
for(int i=0;i<strlen(tmp_data);i++)
~^~~~~~~~~~~~~~~~~
src/module/temperature.cpp: In static member function âstatic void Temperature::manage_heater()â:
src/module/temperature.cpp:1067:34: error: âtemp_bedâ was not declared in this scope
if(target_temperature_bed_old!=temp_bed.target)
^~~~~~~~
src/module/temperature.cpp:1067:34: note: suggested alternative: âtemp_hotendâ
if(target_temperature_bed_old!=temp_bed.target)
^~~~~~~~
temp_hotend
src/module/temperature.cpp:1070:4: error: âsetTargetBedâ was not declared in this scope
setTargetBed(temp_bed.target);
^~~~~~~~~~~~
src/module/temperature.cpp:1070:4: note: suggested alternative: âsetTargetHotendâ
setTargetBed(temp_bed.target);
^~~~~~~~~~~~
setTargetHotend
In file included from src/module/thermistor/../../inc/../HAL/./HAL_PANDAPI/HAL.h:21,
from src/module/thermistor/../../inc/../HAL/HAL.h:26,
from src/module/thermistor/../../inc/MarlinConfig.h:30,
from src/module/thermistor/thermistors.h:24,
from src/module/temperature.h:32,
from src/module/temperature.cpp:27:
src/module/temperature.cpp: In member function âvoid Temperature::init()â:
src/module/thermistor/../../inc/../HAL/./HAL_PANDAPI/../shared/Marduino.h:48:34: warning: left shift count >= width of type [-Wshift-count-overflow]
#define SBI(A,B) (A |= (1 << (B)))
^
src/module/thermistor/../../inc/../HAL/./HAL_PANDAPI/HAL.h:225:38: note: in expansion of macro âSBIâ
#define HAL_ANALOG_SELECT(pin) do{ SBI(DIDR0, pin); }while(0)
^~~
src/module/temperature.cpp:1845:5: note: in expansion of macro âHAL_ANALOG_SELECTâ
HAL_ANALOG_SELECT(TEMP_0_PIN);
^~~~~~~~~~~~~~~~~
src/module/temperature.cpp: In function âchar parse_string(char*, char*, char*, char*, int*)â:
src/module/temperature.cpp:2451:11: warning: comparison of integer expressions of different signedness: âintâ and âsize_tâ {aka âunsigned intâ} [-Wsign-compare]
for(i=0;i<strlen(src);i++)
~^~~~~~~~~~~~
src/module/temperature.cpp:2469:17: warning: comparison of integer expressions of different signedness: âintâ and âsize_tâ {aka âunsigned intâ} [-Wsign-compare]
for(i=s_index;i<strlen(src);i++)
~^~~~~~~~~~~~
src/module/temperature.cpp: In function âint parse_checksum(char*)â:
src/module/temperature.cpp:2663:10: warning: format â%dâ expects argument of type âintâ, but argument 3 has type âlong intâ [-Wformat=]
printf("checksum mismatch=%d=%d\n",checksum,strtol(apos + 1, NULL, 10));
^~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~~~~~~~~~~~~
src/module/temperature.cpp: In static member function âstatic int Temperature::read_with_check()â:
src/module/temperature.cpp:2681:21: warning: array subscript has type âcharâ [-Wchar-subscripts]
while((cmd_buf[cn++]=wiringPiI2CReadReg8(i2c_fd,8))!='\0')
^
src/module/temperature.cpp:2698:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"T:","B",out,&k);
^
src/module/temperature.cpp:2698:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
src/module/temperature.cpp:2707:37: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"B:","",out,&k);
^
src/module/temperature.cpp:2707:37: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
src/module/temperature.cpp:2709:10: error: âtemp_bedâ was not declared in this scope
if(fabs(temp_bed.celsius-f)<20)
^~~~~~~~
src/module/temperature.cpp:2709:10: note: suggested alternative: âtemp_hotendâ
if(fabs(temp_bed.celsius-f)<20)
^~~~~~~~
temp_hotend
src/module/temperature.cpp:2716:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"T1:","",out,&k);
^
src/module/temperature.cpp:2716:38: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
src/module/temperature.cpp:2726:37: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"h","T",out,&k);
^
src/module/temperature.cpp:2726:37: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
src/module/temperature.cpp: In static member function âstatic void Temperature::tick()â:
src/module/temperature.cpp:2772:23: warning: array subscript has type âcharâ [-Wchar-subscripts]
while((cmd_buf[cn++]=wiringPiI2CReadReg8(i2c_fd,8))!='\0')
^
src/module/temperature.cpp:2789:40: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"T:","B",out,&k);
^
src/module/temperature.cpp:2789:40: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
src/module/temperature.cpp:2793:39: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"B:","",out,&k);
^
src/module/temperature.cpp:2793:39: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
src/module/temperature.cpp:2795:4: error: âtemp_bedâ was not declared in this scope
temp_bed.celsius=f;
^~~~~~~~
src/module/temperature.cpp:2795:4: note: suggested alternative: âtemp_hotendâ
temp_bed.celsius=f;
^~~~~~~~
temp_hotend
src/module/temperature.cpp:2797:40: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"T1:","",out,&k);
^
src/module/temperature.cpp:2797:40: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
src/module/temperature.cpp:2802:39: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
parse_string(cmd_buf,"h","T",out,&k);
^
src/module/temperature.cpp:2802:39: warning: ISO C++ forbids converting a string constant to âchar*â [-Wwrite-strings]
make: *** [Makefile:36: src/module/temperature.o] Error 1
Thanks for report this! it's a compile bug when disable the TEMP_SENSOR_BED , I have fixed it and update the src\module\temperature.cpp to the github source code.
that worked! Thank you! Installing the PandaPi on my printer rebuild now, will test and let you know.
Minor point: The name I put in for #define CUSTOM_MACHINE_NAME isn't working (and I uncommented the line). Any clues? #define CUSTOM_MACHINE_NAME "Beastie1"