Added #ifdef CONFIG_POCKET_DETECT to ensure no issues if this is not defined

Signed-off-by: torrented <wallace.ryan10@gmail.com>