From 91b99bd58465efa3c45e579e4aabeb481def8963 Mon Sep 17 00:00:00 2001
From: Kevin Hester <kevinh@geeksville.com>
Date: Sat, 5 Dec 2020 10:27:04 +0800
Subject: [PATCH] require apps to be 1.1.20 or later

---
 docs/software/TODO.md | 4 ++--
 src/mesh/NodeDB.cpp   | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/docs/software/TODO.md b/docs/software/TODO.md
index 6088c535b..1cb6b17e0 100644
--- a/docs/software/TODO.md
+++ b/docs/software/TODO.md
@@ -5,12 +5,12 @@ You probably don't care about this section - skip to the next one.
 For app cleanup:
 
 * have python tool check max packet size before sending to device
-* require a recent python api to talk to these new device loads
+* DONE require a recent python api to talk to these new device loads
+* DONE require a recent android app to talk to these new device loads
 * DONE fix handleIncomingPosition
 * move want_replies handling into plugins
 * on android for received positions handle either old or new positions / user messages
 * on android side send old or new positions as needed / user messages
-* on python side print error messages if old position/user messages seen
 * on python side handle new position/user messages
 * DONE fix position sending to use new plugin
 * DONE Add SinglePortNumPlugin - as the new most useful baseclass
diff --git a/src/mesh/NodeDB.cpp b/src/mesh/NodeDB.cpp
index 102f87793..05895c932 100644
--- a/src/mesh/NodeDB.cpp
+++ b/src/mesh/NodeDB.cpp
@@ -184,7 +184,7 @@ void NodeDB::installDefaultDeviceState()
     // default to no GPS, until one has been found by probing
     myNodeInfo.has_gps = false;
     myNodeInfo.message_timeout_msec = FLOOD_EXPIRE_TIME;
-    myNodeInfo.min_app_version = 172;
+    myNodeInfo.min_app_version = 20120; // format is Mmmss (where M is 1+the numeric major number. i.e. 20120 means 1.1.20
     generatePacketId(); // FIXME - ugly way to init current_packet_id;
 
     // Init our blank owner info to reasonable defaults