Update semc_battery_data.c

Fix compiler forbidden warnings