 
 uint8_t getFingerprintEnroll(uint8_t id);
 
-#ifdef SPARK_CORE
+#if defined (SPARK)
 Adafruit_Fingerprint finger = Adafruit_Fingerprint(&Serial1);
 #else
 // pin #2 is IN from sensor (GREEN wire)

  Serial.println(id);
  
  while (!getFingerprintEnroll(id) )
#ifdef SPARK_CORE
	SPARK_WLAN_Loop();
#else
	;

{
  Serial.begin(9600);
  
#if defined (SPARK)
  while(!Serial.available()) SPARK_WLAN_Loop();
#endif
 
