Fix usage of debug flag
This commit is contained in:
		
							parent
							
								
									9389585d3d
								
							
						
					
					
						commit
						16a583d7fd
					
				
					 7 changed files with 4 additions and 46 deletions
				
			
		| 
						 | 
				
			
			@ -46,7 +46,6 @@ along with this program.  If not, see <http://www.gnu.org/licenses/>.
 | 
			
		|||
#define debug_bin_reverse16(data) do { if (debug_enable) print_bin_reverse16(data); } while (0)
 | 
			
		||||
#define debug_bin_reverse32(data) do { if (debug_enable) print_bin_reverse32(data); } while (0)
 | 
			
		||||
 | 
			
		||||
#define debug_dec(data)           debug_dec(data)
 | 
			
		||||
#define debug_hex(data)           debug_hex8(data)
 | 
			
		||||
#define debug_bin(data)           debug_bin8(data)
 | 
			
		||||
#define debug_bin_reverse(data)   debug_bin8(data)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -544,7 +544,7 @@ static inline void process_key(keyevent_t event)
 | 
			
		|||
 | 
			
		||||
void keyboard_init(void)
 | 
			
		||||
{
 | 
			
		||||
    debug_keyboard = true;
 | 
			
		||||
    // TODO: to enable debug print magic key bind on boot time
 | 
			
		||||
 | 
			
		||||
    // TODO: configuration of sendchar impl
 | 
			
		||||
    print_sendchar_func = sendchar;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -31,7 +31,7 @@
 | 
			
		|||
 | 
			
		||||
 | 
			
		||||
int8_t (*print_sendchar_func)(uint8_t) = 0;
 | 
			
		||||
bool print_enable = false;
 | 
			
		||||
bool print_enable = true;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
/* print string stored in data memory(SRAM)
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue