Patch #2385 2008-02-25 23:46

pauliusz

better WinAVR detection
Download
2385-better_WinAVR.patch (599 bytes)
Category
Application::Refinement
Status
Accepted
Close date
2008-04-04 14:38
Assigned to
biplab
Index: src/plugins/compilergcc/compilerGNUAVR.cpp
===================================================================
--- src/plugins/compilergcc/compilerGNUAVR.cpp    (revision 4906)
+++ src/plugins/compilergcc/compilerGNUAVR.cpp    (working copy)
@@ -251,7 +251,11 @@
 {
     wxString sep = wxFileName::GetPathSeparator();
     if (platform::windows)
-        m_MasterPath = _T("C:\\WinAVR");
+    {
+        m_MasterPath = wxFindFirstFile(_T("C:\\WinAVR*"), wxDIR);
+        if (m_MasterPath.empty())
+            m_MasterPath = _T("C:\\WinAVR");
+    }
     else
         m_MasterPath = _T("/usr");
 
pauliusz 2008-02-25 23:48

This is because newer WinAVR versions by default installs itself to C:\WinAVR-<release_date>

biplab 2008-04-04 14:38

Thanks for the patch.