It seems there may be compatibility issues since uiflow firmware version 1.4.0 http://forum.m5stack.com/topic/1388/gps-data try to downgrade your firmware and retry your code