Compare commits
	
		
			3 Commits
		
	
	
		
			6c76dfc7ae
			...
			ebf65d7448
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					ebf65d7448 | ||
| 
						 | 
					0fa2e5d1f8 | ||
| 
						 | 
					3f54a989f3 | 
							
								
								
									
										11
									
								
								makefile
									
									
									
									
									
								
							
							
						
						
									
										11
									
								
								makefile
									
									
									
									
									
								
							@@ -53,7 +53,7 @@ TESTFLAGS   := $(INCLUDES:%=-I%) -g -Wall -Werror -Wextra -fprofile-arcs -ftest-
 | 
			
		||||
TESTLFLAGS  := -fprofile-arcs -Wl,--allow-multiple-definition
 | 
			
		||||
 | 
			
		||||
DEPEND      = -MT $@ -MF "$(@:%.o=%.d)" -MG -MM
 | 
			
		||||
			
 | 
			
		||||
 | 
			
		||||
COBJ    := $(patsubst %.c,$(OBJ_DIR)%.o,$(SOURCES))
 | 
			
		||||
 | 
			
		||||
EXAMPLE_SOURCES := example/main.c
 | 
			
		||||
@@ -72,17 +72,18 @@ export
 | 
			
		||||
 | 
			
		||||
help:
 | 
			
		||||
	@echo Shellmatta help
 | 
			
		||||
	@echo -------------------------
 | 
			
		||||
	@echo -----------------------------------------------
 | 
			
		||||
	@echo test      - run all tests
 | 
			
		||||
	@echo cppcheck  - run static code analysis (cppcheck)
 | 
			
		||||
	@echo example   - build example
 | 
			
		||||
	@echo -------------------------
 | 
			
		||||
	@echo -----------------------------------------------
 | 
			
		||||
 | 
			
		||||
test: unittest integrationtest
 | 
			
		||||
 | 
			
		||||
cppcheck:
 | 
			
		||||
	- @mkdir -p output/cppcheck/html
 | 
			
		||||
	cppcheck --addon=/usr/bin/misra.py --enable=all --template=gcc --cppcheck-build-dir=output/cppcheck $(SOURCES)
 | 
			
		||||
	cppcheck --addon=/usr/bin/misra.py --enable=all --template=gcc --cppcheck-build-dir=output/cppcheck $(SOURCES) --xml 2>output/cppcheck/cppcheck.xml
 | 
			
		||||
	cppcheck --enable=all --template=gcc --cppcheck-build-dir=output/cppcheck $(SOURCES)
 | 
			
		||||
	cppcheck --enable=all --template=gcc --cppcheck-build-dir=output/cppcheck $(SOURCES) --xml 2>output/cppcheck/cppcheck.xml
 | 
			
		||||
	cppcheck-htmlreport --file=output/cppcheck/cppcheck.xml --title="Shellmatta" --report-dir=output/cppcheck/html
 | 
			
		||||
 | 
			
		||||
unittest: $(UNITTEST_TARGET)
 | 
			
		||||
 
 | 
			
		||||
@@ -416,7 +416,7 @@ shellmatta_retCode_t shellmatta_processData(shellmatta_handle_t     handle,
 | 
			
		||||
                /** -# check if continuous mode is canceled or interrupted by busy mode */
 | 
			
		||||
                if(SHELLMATTA_BUSY == cmdRet)
 | 
			
		||||
                {
 | 
			
		||||
                    inst->busyCmd       = inst->busyCmd;
 | 
			
		||||
                    inst->busyCmd 	= inst->continuousCmd;
 | 
			
		||||
                    inst->continuousCmd = NULL;
 | 
			
		||||
                }
 | 
			
		||||
                else if(('\x03' == data[inst->byteCounter]))
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user