Skip to content

Commit 9b5e9dc

Browse files
committed
Multispindle: add EMCMOT_NUM_SPINDLES to canon.hh
Signed-off-by: andy pugh <andy@bodgesoc.org>
1 parent fc67e5f commit 9b5e9dc

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/emc/nml_intf/canon.hh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
#include "emcpos.h"
2020
#include "emctool.h"
2121
#include "canon_position.hh"
22+
#include "emcmotcfg.h" // Just for EMCMOT_NUM_SPINDLES
2223

2324
/*
2425
This is the header file that all applications that use the
@@ -168,7 +169,7 @@ typedef struct CanonConfig_t {
168169
double naivecamTolerance;
169170
int feed_mode;
170171
int spindle_num; //current spindle for spindle-synch motion
171-
CanonSpindle_t spindle[8]; // EMCMOT_MAX_SPINDLES not defined in this context
172+
CanonSpindle_t spindle[EMCMOT_MAX_SPINDLES];
172173

173174
/* Prepped tool is saved here */
174175
// int preppedTool;

0 commit comments

Comments
 (0)