if in thread gps

Signed-off-by: Kargin A S <adamant@khakensb.ru>