changed the undefined ON and OFF parameters to thedefined constant (#19772)
This commit is contained in:
		
							parent
							
								
									5dfaf0a218
								
							
						
					
					
						commit
						a7febfbb62
					
				
					 1 changed files with 2 additions and 2 deletions
				
			
		|  | @ -60,9 +60,9 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) { | |||
|     switch (keycode) { | ||||
|         case MIDI_CC80: | ||||
|             if (record->event.pressed) { | ||||
|                 midi_send_cc(&midi_device, midi_config.channel, 80, ON); | ||||
|                 midi_send_cc(&midi_device, midi_config.channel, 80, MIDI_CC_ON); | ||||
|             } else { | ||||
|                 midi_send_cc(&midi_device, midi_config.channel, 80, OFF); | ||||
|                 midi_send_cc(&midi_device, midi_config.channel, 80, MIDI_CC_OFF); | ||||
|             } | ||||
|             return true; | ||||
|     } | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 soggywhale
						soggywhale