Index: Transistortester.h
===================================================================
--- Transistortester.h	(Revision 151)
+++ Transistortester.h	(Arbeitskopie)
@@ -384,8 +384,8 @@
   extern uint16_t ref_offset;
   extern uint8_t c_zero_tab[];
  #endif
-  extern uint8_t EE_ESR_ZERO EEMEM;	// zero offset of ESR measurement
-  extern  uint16_t RLtab[];
+  extern const uint8_t EE_ESR_ZERO EEMEM;	// zero offset of ESR measurement
+  extern  const uint16_t RLtab[];
 
  #if FLASHEND > 0x1fff
   extern uint8_t LogTab[];
@@ -395,10 +395,10 @@
 
 
  #ifdef AUTO_RH
-  extern uint16_t RHtab[];
+  extern const uint16_t RHtab[];
  #endif
-  extern unsigned char PinRLtab[];
-  extern unsigned char PinADCtab[];
+  extern const unsigned char PinRLtab[];
+  extern const unsigned char PinADCtab[];
   extern unsigned int RHmultip;
 #endif
 
Index: lcd-routines.h
===================================================================
--- lcd-routines.h	(Revision 151)
+++ lcd-routines.h	(Arbeitskopie)
@@ -1,4 +1,5 @@
 #include "config.h"
+#include <stdint.h>
 
 // Interfacing of a HD44780 compatible LCD with 4-Bit-Interface mode
 // http://www.mikrocontroller.net/articles/AVR-GCC-Tutorial
Index: main.c
===================================================================
--- main.c	(Revision 151)
+++ main.c	(Arbeitskopie)
@@ -1,8 +1,8 @@
 
+#include "config.h"
 #include <avr/io.h>
 #include "lcd-routines.h"
 #include "wait1000ms.h"
-#include "config.h"
 #include <util/delay.h>
 #include <avr/sleep.h>
 #include <stdlib.h>
@@ -24,12 +24,14 @@
 //begin of transistortester program
 int main(void) {
   //switch on
+#ifdef ON_PIN
   ON_DDR = (1<<ON_PIN);			// switch to output
 #ifdef PULLUP_DISABLE
   ON_PORT = (1<<ON_PIN); 		// switch power on 
 #else
   ON_PORT = (1<<ON_PIN)|(1<<RST_PIN); 	// switch power on , enable internal Pullup for Start-Pin
 #endif
+#endif
   uint8_t tmp;
   //ADC-Init
   ADCSRA = (1<<ADEN) | AUTO_CLOCK_DIV;	//prescaler=8 or 64 (if 8Mhz clock)
@@ -76,8 +78,10 @@
      lcd_line1();
      lcd_fix_string(TestTimedOut);	//Output Timeout
      wait_about3s();				//wait for 3 s
+#ifdef ON_PIN
      ON_PORT = 0;			//shut off!
      ON_DDR = (1<<ON_PIN);		//switch to GND
+#endif
      return 0;
   }
   LCDLoadCustomChar(LCD_CHAR_DIODE1);	//Custom-Character Diode symbol
@@ -659,7 +663,9 @@
  #endif
   // only one Measurement requested, shut off
 //  MCUSR = 0;
+#ifdef ON_PIN
   ON_PORT &= ~(1<<ON_PIN);		//switch off power
+#endif
   //never ending loop 
   while(1) {
      if(!(ON_PIN_REG & (1<<RST_PIN))) {
Index: tt_function.h
===================================================================
--- tt_function.h	(Revision 151)
+++ tt_function.h	(Arbeitskopie)
@@ -1,3 +1,4 @@
+#include <stdint.h>
 void CheckPins(uint8_t HighPin, uint8_t LowPin, uint8_t TristatePin);
 void ChargePin10ms(uint8_t PinToCharge, uint8_t ChargeDirection);
 unsigned int ReadADC(uint8_t mux);		// read Routine for ADC
@@ -7,17 +8,17 @@
 void lcd_show_format_cap(void);
 void ReadCapacity(uint8_t HighPin, uint8_t LowPin);	//capacity measurement
 void ReadInductance(void);		//inductance measurement
-void GetESR();				//get ESR of capacitor
+void GetESR(void);				//get ESR of capacitor
 void UfAusgabe(uint8_t bcdchar);	// Output of the threshold voltage(s) Uf
 void mVAusgabe(uint8_t nn);		// Output of the theshold voltage for Diode nn 
 void RvalOut(uint8_t ii);		// Output of the resistore value(s)
 void ShowResistor(void);		// show one or two Resistors
-void EntladePins();			// discharge capacitors
-void RefVoltage();			// compensate the reference voltage for comparator 
-void AutoCheck();			// check if self-test should be done 
+void EntladePins(void);			// discharge capacitors
+void RefVoltage(void);			// compensate the reference voltage for comparator 
+void AutoCheck(void);			// check if self-test should be done 
 unsigned int getRLmultip(unsigned int cvolt);  // get C-Multiplikator for voltage cvolt
-void Scale_C_with_vcc();		// scale capacity value for different VCC Voltages
-void scale_intref_adc();		// get scale factors for ReadADC with internal reference
+void Scale_C_with_vcc(void);		// scale capacity value for different VCC Voltages
+void scale_intref_adc(void);		// get scale factors for ReadADC with internal reference
 //uint8_t value_out(unsigned long vval,uint8_t pp);    // output 4 digits with (pp-1) digits after point
 void DisplayValue(unsigned long vval,int8_t Expo,unsigned char Unit, unsigned char Digits); //output Digits characters with exponent and unit
 unsigned int compute_hfe(unsigned int lpx, unsigned int tpy);
