GCS_MAVLink: fixed disabling of signing remotely

This commit is contained in:
Andrew Tridgell 2016-05-24 07:25:43 +10:00
parent 563614e84b
commit 64e105464d
1 changed files with 1 additions and 1 deletions

View File

@ -131,7 +131,7 @@ void GCS_MAVLINK::load_signing_key(void)
signing.accept_unsigned_callback = accept_unsigned_callback;
// if timestamp and key are all zero then we disable signing
bool all_zero = (signing.timestamp == 0);
bool all_zero = (key.timestamp == 0);
for (uint8_t i=0; i<sizeof(key.secret_key); i++) {
if (signing.secret_key[i] != 0) {
all_zero = false;