mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-04-24 03:29:57 -07:00
ensure correct byte shifts
This commit is contained in:
@@ -422,7 +422,8 @@ void subghz_txrx_gen_serial_gangqi(uint64_t* result_key) {
|
|||||||
|
|
||||||
// Add bytesum to the end
|
// Add bytesum to the end
|
||||||
// serial | const_and_button
|
// serial | const_and_button
|
||||||
*result_key = (serial << 18) | (const_and_button << 10) | (bytesum << 2);
|
*result_key = ((uint64_t)serial << 18) | ((uint64_t)const_and_button << 10) |
|
||||||
|
((uint64_t)bytesum << 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
void subghz_txrx_gen_key_marantec(uint64_t* result_key) {
|
void subghz_txrx_gen_key_marantec(uint64_t* result_key) {
|
||||||
|
|||||||
Reference in New Issue
Block a user