fix naming

This commit is contained in:
MX
2025-02-20 04:41:02 +03:00
parent cd94db3b91
commit fa2af5a826
2 changed files with 13 additions and 13 deletions

View File

@@ -389,9 +389,9 @@ void subghz_txrx_gen_serial_gangqi(uint64_t* result_key) {
uint8_t const_and_button = (uint8_t)(0xD0 | 0xD);
uint8_t serial_high = (uint8_t)(serial >> 8);
uint8_t serial_low = (uint8_t)(serial & 0xFF);
uint8_t crc = (uint8_t)(0xC8 - serial_high - serial_low - const_and_button);
uint8_t bytesum = (uint8_t)(0xC8 - serial_high - serial_low - const_and_button);
// Add crc sum to the end
// Add bytesum to the end
// serial | const_and_button
*result_key = (serial << 18) | (const_and_button << 10) | (crc << 2);
*result_key = (serial << 18) | (const_and_button << 10) | (bytesum << 2);
}