triffid/Teacup_Firmware — comment on commit 9dbfa7217e0de8b140846ab480d6b4a7fc9b6791
File: dda.c line 236
By phord:

dda->z_direction = (target->Z >= 0)?1:0;