Skip to content

Commit efc2b02

Browse files
committed
Do not fault on systems that don't have a heated bed.
1 parent 0dcf89c commit efc2b02

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

bebopr_r2.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@
2424
#define PWM_PATH_PREFIX "/sys/class/pwm/"
2525

2626
/*
27-
* Note, for the easy of implementation, the string addresses are used.
27+
* Note, for the ease of implementation, the string addresses are used.
2828
* This means one cannot use identical strings, but must use pointers
2929
* to the one and only string!
3030
*/
31-
//#define GENERATE_TAG( name) static const char name[] = #name
3231
#define GENERATE_TAG( name) static const char name[] = #name
3332
GENERATE_TAG( bed_thermistor);
3433
GENERATE_TAG( extruder_thermistor);

gcode_process.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -928,7 +928,7 @@ int gcode_process_init( void)
928928
tag_name( heater_extruder), tag_name( heater_bed),
929929
tag_name( temp_extruder), tag_name( temp_bed));
930930
}
931-
if (heater_extruder == NULL || heater_bed == NULL || temp_extruder == NULL || temp_bed == NULL) {
931+
if (heater_extruder == NULL || temp_extruder == NULL) {
932932
return -1;
933933
}
934934
return 0;

0 commit comments

Comments
 (0)