From 3f663597b5c18a1f16050ede7adb1dcdcfa0c4d6 Mon Sep 17 00:00:00 2001 From: DrZiplok Date: Wed, 12 Jan 2011 02:43:25 +0000 Subject: [PATCH] Based on explaining AP_VarNoAddress to Doug, improve the description of the value. git-svn-id: https://arducopter.googlecode.com/svn/trunk@1491 f9c3cf11-9bcb-44bc-f272-b75c42450872 --- libraries/AP_Common/AP_Var.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/libraries/AP_Common/AP_Var.h b/libraries/AP_Common/AP_Var.h index 3b829d33a9..319a3cb1d7 100644 --- a/libraries/AP_Common/AP_Var.h +++ b/libraries/AP_Common/AP_Var.h @@ -48,9 +48,13 @@ public: typedef uint16_t AP_VarAddress; /// An address value that indicates that a variable is not to be saved to EEPROM. + /// + /// As the value has all bits set to 1, it's not a legal EEPROM address for any + /// EEPROM smaller than 64K. + /// /// This value is normally the default. /// - static const AP_VarAddress AP_VarNoAddress = !(AP_VarAddress)0; + static const AP_VarAddress AP_VarNoAddress = ~(AP_VarAddress)0; /// The largest variable that will be saved to EEPROM. /// This affects the amount of stack space that is required by the ::save, ::load,