Fix backwards ifdef in dsm.c