Fix undeclared variable error by changing 'config' to 'cfg' in the data_sync condition check, matching the variable name declared at the beginning of the function. Signed-off-by: Liang Jiaxiang <moonbite233@gmail.com>