This invention proposes an air conditioner comprising: a controller, which includes a first control module and a second control module. The second control module is configured to: retrieve first
software version information from a memory when the air conditioner is powered on; verify the first
software version information; if the
verification of the first
software version information fails, retrieve second software version information; determine a second
verification formula based on the second software version information; verify the second software version information based on the second
verification formula; and if the verification is successful, store the second software version information in the memory to replace the first software version information. This invention can verify the second software version information based on a specific formula and store it in memory upon successful verification, thereby ensuring the consistency of the
checksum in the memory without increasing costs, avoiding problems caused by changes in the
checksum in the memory, and improving the reliability of the air conditioner.