Smart battery (DJI) reading/writing

How can I fix this? Is it complicated to rewrite the code?