Browse Source

Make SanityCheck.h a catch-all for obsolete configs

pull/1/head
Scott Lahteine 8 years ago
parent
commit
3be49881c0
  1. 3
      Marlin/Conditionals.h
  2. 4
      Marlin/Marlin.h
  3. 27
      Marlin/SanityCheck.h

3
Marlin/Conditionals.h

@ -24,5 +24,4 @@
* Conditionals.h * Conditionals.h
* OBSOLETE: Replaced by Conditionals_LCD.h and Conditionals_post.h * OBSOLETE: Replaced by Conditionals_LCD.h and Conditionals_post.h
*/ */
#include "SanityCheck.h"
#error "Please remove the following #include's from your Configuration.h and Configuration_adv.h: macros.h boards.h Conditionals.h Configuration_adv.h SanityCheck.h."

4
Marlin/Marlin.h

@ -37,10 +37,6 @@
#include "fastio.h" #include "fastio.h"
#ifndef SANITYCHECK_H
#error "Your Configuration.h and Configuration_adv.h files are outdated!"
#endif
#include "enum.h" #include "enum.h"
#include "utility.h" #include "utility.h"

27
Marlin/SanityCheck.h

@ -0,0 +1,27 @@
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
/**
* SanityCheck.h
* OBSOLETE: Moved to SanityCheck.cpp
*/
#error "Please remove all #include lines from your Configuration.h and Configuration_adv.h files!"
Loading…
Cancel
Save