@@ -214,7 +214,8 @@ static void uart_task() {
214214 // Similar behavior is on the right side as well.
215215 if (uart_state == CHOCO_SYNCED ) {
216216 // Vanilla mode, ahoy!
217- // This sets it exactly as it is given, with very little thought given to the input given.
217+ // This sets it exactly as it is given, with very little thought
218+ // given to the input given.
218219
219220 // This is used to clear the 2 most significant bits in the first
220221 // packet (which are mapped to SR and SL)
@@ -425,12 +426,12 @@ static void uart_task() {
425426 cx_send = 255 - stickY ;
426427 cy_send = stickX ;
427428
428- but1_send = (up_button << 0 ) + // Y
429- (right_button << 1 ) + // X
430- (left_button << 2 ) + // B
431- (down_button << 3 ) + // A
429+ but1_send = (up_button << 0 ) + // Y
430+ (right_button << 1 ) + // X
431+ (left_button << 2 ) + // B
432+ (down_button << 3 ) + // A
432433 (right_shoulder << 4 ) + // SR
433- (left_shoulder << 5 ); // SL
434+ (left_shoulder << 5 ); // SL
434435
435436 but2_send += (home_button << 4 ) + // Home
436437 (start_button << 1 ) + // +/Start
@@ -445,12 +446,12 @@ static void uart_task() {
445446 cx_send = 128 ;
446447 cy_send = 128 ;
447448
448- but3_send = (right_button << 0 ) + // Y
449- (left_button << 1 ) + // X
450- (up_button << 2 ) + // B
451- (down_button << 3 ) + // A
449+ but3_send = (right_button << 0 ) + // Y
450+ (left_button << 1 ) + // X
451+ (up_button << 2 ) + // B
452+ (down_button << 3 ) + // A
452453 (right_shoulder << 4 ) + // SR
453- (left_shoulder << 5 ); // SL
454+ (left_shoulder << 5 ); // SL
454455
455456 but2_send += (start_button << 0 ) + // -/Select
456457 (stickclick_button << 3 ) + // L Stick Click
@@ -1108,8 +1109,8 @@ void app_main() {
11081109 gpio_config (& io_conf );
11091110 // gap_callbacks = get_device_cb;
11101111
1111- app_param .name = "BlueCubeMod " ;
1112- app_param .description = "BlueCubeMod Example " ;
1112+ app_param .name = "UARTSwitchCon " ;
1113+ app_param .description = "UARTSwitchCon " ;
11131114 app_param .provider = "ESP32" ;
11141115 // app_param.subclass = 0x002508;
11151116 app_param .subclass = 0x8 ;
0 commit comments