Procházet zdrojové kódy

Format for toolchain 37

Willy-JL před 1 rokem
rodič
revize
6072a9c81c
85 změnil soubory, kde provedl 298 přidání a 248 odebrání
  1. 4 2
      2048/game_2048.c
  2. 2 1
      airmouse/tracking/imu/lsm6ds3trc.c
  3. 2 1
      airmouse/tracking/imu/lsm6dso.c
  4. 4 2
      asteroids/app.c
  5. 2 1
      atomicdiceroller/flipper_atomicdiceroller.c
  6. 2 1
      blackjack/common/ui.c
  7. 2 4
      ble_spam/ble_spam.c
  8. 2 4
      camera_suite/views/camera_suite_view_camera.c
  9. 1 2
      camera_suite/views/camera_suite_view_guide.c
  10. 1 2
      camera_suite/views/camera_suite_view_start.c
  11. 51 25
      chess/chess/smallchesslib.h
  12. 4 2
      chess/sam/stm32_sam.cpp
  13. 2 4
      chess/views/flipchess_scene_1.c
  14. 1 2
      chess/views/flipchess_startscreen.c
  15. 2 4
      cntdown_timer/views/countdown_view.c
  16. 1 2
      cross_remote/helpers/gui/int_input.c
  17. 1 2
      cross_remote/views/xremote_infoscreen.c
  18. 1 2
      cross_remote/views/xremote_pause_set.c
  19. 1 2
      cross_remote/views/xremote_transmit.c
  20. 2 4
      dap_link/gui/views/dap_main_view.c
  21. 2 5
      dap_link/usb/usb_winusb.h
  22. 2 1
      doom/display.h
  23. 12 6
      esubghz_chat/crypto/gcm.c
  24. 6 12
      ethernet/eth_save_process.h
  25. 1 2
      flipbip/views/flipbip_scene_1.c
  26. 4 2
      geiger/flipper_geiger.c
  27. 1 2
      hex_viewer/views/hex_viewer_startscreen.c
  28. 2 1
      ir_scope/ir_scope.c
  29. 10 20
      lightmeter/gui/views/main_view.c
  30. 12 6
      magspoof/helpers/mag_helpers.c
  31. 1 2
      malveke_gb_cartridge/views/gb_cartridge_scene_1.c
  32. 1 2
      malveke_gb_cartridge/views/gb_cartridge_startscreen.c
  33. 1 2
      malveke_gb_emulator/malveke_gb_emulator.c
  34. 1 2
      malveke_gb_live_camera/gb_live_camera.c
  35. 1 2
      malveke_gb_photo/views/boilerplate_scene_1.c
  36. 1 2
      malveke_gb_photo/views/boilerplate_startscreen.c
  37. 1 2
      malveke_gba_cartridge/views/gba_cartridge_scene_1.c
  38. 1 2
      malveke_pin_test/malveke_pin_test.c
  39. 4 2
      mass_storage/helpers/mass_storage_usb.c
  40. 1 2
      mayhem_camera/camera.c
  41. 2 1
      mayhem_marauder/script/cJSON.c
  42. 2 1
      mayhem_marauder/script/wifi_marauder_script_executor.c
  43. 1 2
      mayhem_motion/uart_echo.c
  44. 1 2
      mayhem_nannycam/uart_echo.c
  45. 1 2
      mayhem_qrcode/uart_echo.c
  46. 1 2
      meal_pager/helpers/gui/int_input.c
  47. 1 2
      meal_pager/views/meal_pager_startscreen.c
  48. 4 8
      meal_pager/views/meal_pager_transmit.c
  49. 4 2
      mfkey/crypto1.h
  50. 2 1
      nfc_magic/magic/protocols/gen2/crypto1.c
  51. 12 6
      nrf24batch/nrf24batch.c
  52. 2 1
      nrf24mousejacker/mousejacker_ducky.c
  53. 4 2
      nrf24scan/nrf24scan.c
  54. 4 2
      nrf24sniff/nrfsniff.c
  55. 2 4
      pokemon_trading/views/trade.c
  56. 2 1
      protoview/app.c
  57. 2 1
      protoview/app_subghz.c
  58. 4 2
      protoview/crc.c
  59. 2 1
      protoview/fields.c
  60. 2 1
      protoview/protocols/keeloq.c
  61. 2 1
      protoview/protocols/tpms/citroen.c
  62. 2 1
      protoview/protocols/tpms/ford.c
  63. 2 1
      protoview/protocols/tpms/schrader_eg53ma4.c
  64. 4 2
      protoview/signal.c
  65. 2 1
      protoview/ui.c
  66. 8 4
      protoview/view_build.c
  67. 2 1
      protoview/view_settings.c
  68. 2 1
      solitaire/common/ui.c
  69. 4 2
      solitaire/solitaire.c
  70. 2 1
      t5577_multiwriter/protocols/EM41XX.c
  71. 2 1
      tama_p1/tama_p1.c
  72. 4 2
      text2sam/stm32_sam.cpp
  73. 4 2
      unitemp/interfaces/SingleWireSensor.c
  74. 1 2
      vgm_air_mouse/views/air_mouse_view.c
  75. 1 1
      video_game_module_tool/flasher/rp2040.c
  76. 8 4
      videopoker/poker.c
  77. 16 13
      wardriver/helpers/minmea.c
  78. 4 8
      wav_player/wav_player_view.c
  79. 2 1
      wifi_marauder_companion/script/cJSON.c
  80. 2 1
      wifi_marauder_companion/script/wifi_marauder_script_executor.c
  81. 2 1
      wiiec/_image_tool/_convert.c
  82. 4 2
      wiiec/_image_tool/_convert_images.c
  83. 4 2
      wiiec/_image_tool/_convert_test.c
  84. 4 2
      wiiec/gfx/images.c
  85. 2 1
      wiiec/wii_i2c.c

+ 4 - 2
2048/game_2048.c

@@ -194,7 +194,8 @@ void calculate_move_to_left(uint8_t arr[], MoveResult* const move_result) {
     while(index < CELLS_COUNT - 1) {
         // find offset from [index] to next non-empty value
         offset = 1;
-        while(index + offset < CELLS_COUNT && arr[index + offset] == 0) offset++;
+        while(index + offset < CELLS_COUNT && arr[index + offset] == 0)
+            offset++;
 
         // if all remaining values in this row are empty then go to next row
         if(index + offset >= CELLS_COUNT) break;
@@ -209,7 +210,8 @@ void calculate_move_to_left(uint8_t arr[], MoveResult* const move_result) {
         if(arr[next_index] == 0) {
             // find offset from [next_index] to next non-empty value
             offset = 1;
-            while(next_index + offset < CELLS_COUNT && arr[next_index + offset] == 0) offset++;
+            while(next_index + offset < CELLS_COUNT && arr[next_index + offset] == 0)
+                offset++;
 
             // if all remaining values in this row are empty then go to next row
             if(next_index + offset >= CELLS_COUNT) break;

+ 2 - 1
airmouse/tracking/imu/lsm6ds3trc.c

@@ -39,7 +39,8 @@ bool lsm6ds3trc_begin() {
 
     lsm6ds3tr_c_reset_set(&lsm6ds3trc_ctx, PROPERTY_ENABLE);
     uint8_t rst = PROPERTY_ENABLE;
-    while(rst) lsm6ds3tr_c_reset_get(&lsm6ds3trc_ctx, &rst);
+    while(rst)
+        lsm6ds3tr_c_reset_get(&lsm6ds3trc_ctx, &rst);
 
     lsm6ds3tr_c_block_data_update_set(&lsm6ds3trc_ctx, PROPERTY_ENABLE);
     lsm6ds3tr_c_fifo_mode_set(&lsm6ds3trc_ctx, LSM6DS3TR_C_BYPASS_MODE);

+ 2 - 1
airmouse/tracking/imu/lsm6dso.c

@@ -38,7 +38,8 @@ bool lsm6dso_begin() {
 
     lsm6dso_reset_set(&lsm6dso_ctx, PROPERTY_ENABLE);
     uint8_t rst = PROPERTY_ENABLE;
-    while(rst) lsm6dso_reset_get(&lsm6dso_ctx, &rst);
+    while(rst)
+        lsm6dso_reset_get(&lsm6dso_ctx, &rst);
 
     lsm6dso_block_data_update_set(&lsm6dso_ctx, PROPERTY_ENABLE);
     lsm6dso_fifo_mode_set(&lsm6dso_ctx, LSM6DSO_BYPASS_MODE);

+ 4 - 2
asteroids/app.c

@@ -490,9 +490,11 @@ void render_callback(Canvas* const canvas, void* ctx) {
         draw_poly(canvas, &ShipFirePoly, app->ship.x, app->ship.y, app->ship.rot);
     }
 
-    for(int j = 0; j < app->bullets_num; j++) draw_bullet(canvas, &app->bullets[j]);
+    for(int j = 0; j < app->bullets_num; j++)
+        draw_bullet(canvas, &app->bullets[j]);
 
-    for(int j = 0; j < app->asteroids_num; j++) draw_asteroid(canvas, &app->asteroids[j]);
+    for(int j = 0; j < app->asteroids_num; j++)
+        draw_asteroid(canvas, &app->asteroids[j]);
 
     for(int j = 0; j < app->powerUps_num; j++) {
         draw_powerUps(canvas, &app->powerUps[j]);

+ 2 - 1
atomicdiceroller/flipper_atomicdiceroller.c

@@ -207,7 +207,8 @@ int32_t flipper_atomicdiceroller_app() {
     }
 
     uint8_t diceBuffer[64];
-    for(uint8_t i = 0; i < 64; i++) diceBuffer[i] = 0;
+    for(uint8_t i = 0; i < 64; i++)
+        diceBuffer[i] = 0;
 
     uint8_t diceBufferCounter = 0;
     uint8_t diceBufferPositionWrite = 0;

+ 2 - 1
blackjack/common/ui.c

@@ -23,7 +23,8 @@ void add_new_tilemap(uint8_t* data, unsigned long iconId) {
     tileMapCount++;
     tileMap = malloc(sizeof(TileMap) * tileMapCount);
     if(tileMapCount > 1) {
-        for(uint8_t i = 0; i < tileMapCount; i++) tileMap[i] = old[i];
+        for(uint8_t i = 0; i < tileMapCount; i++)
+            tileMap[i] = old[i];
     }
     tileMap[tileMapCount - 1] = (TileMap){data, iconId};
 }

+ 2 - 4
ble_spam/ble_spam.c

@@ -622,8 +622,7 @@ static void lock_timer_callback(void* _ctx) {
     } else {
         state->ctx.lock_keyboard = false;
     }
-    with_view_model(
-        state->main_view, State * *model, { (*model)->lock_warning = false; }, true);
+    with_view_model(state->main_view, State * *model, { (*model)->lock_warning = false; }, true);
     state->lock_count = 0;
     furi_timer_set_thread_priority(FuriTimerThreadPriorityNormal);
 }
@@ -680,8 +679,7 @@ int32_t ble_spam(void* p) {
 
     state->main_view = view_alloc();
     view_allocate_model(state->main_view, ViewModelTypeLocking, sizeof(State*));
-    with_view_model(
-        state->main_view, State * *model, { *model = state; }, false);
+    with_view_model(state->main_view, State * *model, { *model = state; }, false);
     view_set_context(state->main_view, state->main_view);
     view_set_draw_callback(state->main_view, draw_callback);
     view_set_input_callback(state->main_view, input_callback);

+ 2 - 4
camera_suite/views/camera_suite_view_camera.c

@@ -557,8 +557,7 @@ static int32_t camera_suite_camera_worker(void* context) {
                 }
             } while(length > 0);
 
-            with_view_model(
-                instance->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(instance->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 
@@ -626,8 +625,7 @@ void camera_suite_view_camera_free(CameraSuiteViewCamera* instance) {
     // Free the allocated stream buffer.
     furi_stream_buffer_free(instance->camera_rx_stream);
 
-    with_view_model(
-        instance->view, UartDumpModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, UartDumpModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
camera_suite/views/camera_suite_view_guide.c

@@ -108,8 +108,7 @@ CameraSuiteViewGuide* camera_suite_view_guide_alloc() {
 void camera_suite_view_guide_free(CameraSuiteViewGuide* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, CameraSuiteViewGuideModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, CameraSuiteViewGuideModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
camera_suite/views/camera_suite_view_start.c

@@ -189,8 +189,7 @@ CameraSuiteViewStart* camera_suite_view_start_alloc() {
 void camera_suite_view_start_free(CameraSuiteViewStart* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, CameraSuiteViewStartModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, CameraSuiteViewStartModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 51 - 25
chess/chess/smallchesslib.h

@@ -119,8 +119,7 @@ void SCL_randomBetterSeed(uint16_t seed);
 */
 typedef uint8_t SCL_SquareSet[8];
 
-#define SCL_SQUARE_SET_EMPTY \
-    { 0, 0, 0, 0, 0, 0, 0, 0 }
+#define SCL_SQUARE_SET_EMPTY {0, 0, 0, 0, 0, 0, 0, 0}
 
 void SCL_squareSetClear(SCL_SquareSet squareSet);
 void SCL_squareSetAdd(SCL_SquareSet squareSet, uint8_t square);
@@ -221,13 +220,25 @@ typedef char SCL_Board[SCL_BOARD_STATE_SIZE];
 #define _SCL_EXTRA_BYTE_VALUE 0
 #endif
 
-#define SCL_BOARD_START_STATE                                                                   \
-    {                                                                                           \
-        82, 78, 66, 81, 75, 66, 78, 82, 80, 80, 80, 80, 80, 80, 80, 80, 46, 46, 46, 46, 46, 46, \
-            46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, 46, \
-            46, 46, 46, 46, 46, 112, 112, 112, 112, 112, 112, 112, 112, 114, 110, 98, 113, 107, \
-            98, 110, 114, (char)0xff, 0, 0, _SCL_EXTRA_BYTE_VALUE, 0                            \
-    }
+#define SCL_BOARD_START_STATE                     \
+    {82,         78,  66,  81,                    \
+     75,         66,  78,  82,                    \
+     80,         80,  80,  80,                    \
+     80,         80,  80,  80,                    \
+     46,         46,  46,  46,                    \
+     46,         46,  46,  46,                    \
+     46,         46,  46,  46,                    \
+     46,         46,  46,  46,                    \
+     46,         46,  46,  46,                    \
+     46,         46,  46,  46,                    \
+     46,         46,  46,  46,                    \
+     46,         46,  46,  46,                    \
+     112,        112, 112, 112,                   \
+     112,        112, 112, 112,                   \
+     114,        110, 98,  113,                   \
+     107,        98,  110, 114,                   \
+     (char)0xff, 0,   0,   _SCL_EXTRA_BYTE_VALUE, \
+     0}
 
 #define SCL_FEN_START "rnbqkbnr/pppppppp/8/8/8/8/PPPPPPPP/RNBQKBNR w KQkq - 0 1"
 
@@ -268,7 +279,7 @@ typedef struct {
   Converts square in common notation (e.g. 'c' 8) to square number. Only accepts
   lowercase column.
 */
-#define SCL_SQUARE(colChar, rowInt) (((rowInt)-1) * 8 + ((colChar) - 'a'))
+#define SCL_SQUARE(colChar, rowInt) (((rowInt) - 1) * 8 + ((colChar) - 'a'))
 #define SCL_S(c, r) SCL_SQUARE(c, r)
 
 void SCL_boardInit(SCL_Board board);
@@ -764,7 +775,8 @@ void SCL_randomBetterSeed(uint16_t seed) {
 }
 
 void SCL_squareSetClear(SCL_SquareSet squareSet) {
-    for(uint8_t i = 0; i < 8; ++i) squareSet[i] = 0;
+    for(uint8_t i = 0; i < 8; ++i)
+        squareSet[i] = 0;
 }
 
 uint8_t SCL_stringToSquare(const char* square) {
@@ -877,7 +889,8 @@ void SCL_boardInit(SCL_Board board) {
         *b2 = 'p';
     }
 
-    for(uint8_t i = 0; i < 32; ++i, b++) *b = '.';
+    for(uint8_t i = 0; i < 32; ++i, b++)
+        *b = '.';
 
     b += 8;
 
@@ -898,7 +911,8 @@ void SCL_boardInit(SCL_Board board) {
     *b = 'r';
     b++;
 
-    for(uint8_t i = 0; i < SCL_BOARD_STATE_SIZE - SCL_BOARD_SQUARES; ++i, ++b) *b = 0;
+    for(uint8_t i = 0; i < SCL_BOARD_STATE_SIZE - SCL_BOARD_SQUARES; ++i, ++b)
+        *b = 0;
 
     board[SCL_BOARD_ENPASSANT_CASTLE_BYTE] = (char)0xff;
 
@@ -970,7 +984,8 @@ void SCL_boardInit960(SCL_Board board, uint16_t positionNumber) {
 
     _SCL_boardPlaceOnNthAvailable(board, 0, rooks == 2 ? 'N' : 'R');
 
-    for(uint8_t i = 0; i < 8; ++i) board[56 + i] = SCL_pieceToColor(board[i], 0);
+    for(uint8_t i = 0; i < 8; ++i)
+        board[56 + i] = SCL_pieceToColor(board[i], 0);
 
 #if SCL_960_CASTLING
     _SCL_board960RememberRookPositions(board);
@@ -1048,7 +1063,8 @@ void SCL_recordFromPGN(SCL_Record r, const char* pgn) {
 
             uint8_t ranks = 0, files = 0;
 
-            for(uint8_t i = 0; i < 4; ++i) coords[i] = -1;
+            for(uint8_t i = 0; i < 4; ++i)
+                coords[i] = -1;
 
             while(*pgn != ' ' && *pgn != '\n' && *pgn != '\t' && *pgn != '{' && *pgn != 0) {
                 if(*pgn == '=') promotion = 1;
@@ -1129,7 +1145,8 @@ void SCL_recordFromPGN(SCL_Record r, const char* pgn) {
 
             while(*pgn == ' ' || *pgn == '\n' || *pgn == '\t' || *pgn == '{') {
                 if(*pgn == '{')
-                    while(*pgn != '}') pgn++;
+                    while(*pgn != '}')
+                        pgn++;
 
                 pgn++;
             }
@@ -1159,7 +1176,8 @@ uint16_t SCL_recordLength(const SCL_Record r) {
 
     uint16_t result = 0;
 
-    while((r[result] & 0xc0) == 0) result += 2;
+    while((r[result] & 0xc0) == 0)
+        result += 2;
 
     return (result / 2) + 1;
 }
@@ -1565,7 +1583,8 @@ uint8_t SCL_squareSetGetRandom(const SCL_SquareSet squareSet, SCL_RandomFunction
 }
 
 void SCL_boardCopy(const SCL_Board boardFrom, SCL_Board boardTo) {
-    for(uint8_t i = 0; i < SCL_BOARD_STATE_SIZE; ++i) boardTo[i] = boardFrom[i];
+    for(uint8_t i = 0; i < SCL_BOARD_STATE_SIZE; ++i)
+        boardTo[i] = boardFrom[i];
 }
 
 uint8_t SCL_boardSquareAttacked(SCL_Board board, uint8_t square, uint8_t byWhite) {
@@ -1965,7 +1984,8 @@ void SCL_boardGetMoves(SCL_Board board, uint8_t pieceSquare, SCL_SquareSet resul
 
     SCL_squareSetClear(allMoves);
 
-    for(uint8_t i = 0; i < 8; ++i) result[i] = 0;
+    for(uint8_t i = 0; i < 8; ++i)
+        result[i] = 0;
 
     SCL_boardGetPseudoMoves(board, pieceSquare, 1, allMoves);
 
@@ -2125,7 +2145,8 @@ void SCL_printBoard(
     uint8_t labels,
     uint8_t blackDown) {
     if(labels) {
-        for(uint8_t i = 0; i < offset + 2; ++i) putCharFunc(' ');
+        for(uint8_t i = 0; i < offset + 2; ++i)
+            putCharFunc(' ');
 
         for(uint8_t i = 0; i < 8; ++i) {
             if((format != SCL_PRINT_FORMAT_COMPACT) && (format != SCL_PRINT_FORMAT_COMPACT_UTF8))
@@ -2146,7 +2167,8 @@ void SCL_printBoard(
     }
 
     for(int8_t row = 0; row < 8; ++row) {
-        for(uint8_t j = 0; j < offset; ++j) putCharFunc(' ');
+        for(uint8_t j = 0; j < offset; ++j)
+            putCharFunc(' ');
 
         if(labels) {
             putCharFunc(!blackDown ? ('8' - row) : ('1' + row));
@@ -3248,7 +3270,8 @@ void SCL_printPGN(SCL_Record r, SCL_PutCharFunction putCharFunc, SCL_Board initi
     SCL_Board board;
 
     if(initialState != 0)
-        for(uint8_t i = 0; i < SCL_BOARD_STATE_SIZE; ++i) board[i] = initialState[i];
+        for(uint8_t i = 0; i < SCL_BOARD_STATE_SIZE; ++i)
+            board[i] = initialState[i];
     else
         SCL_boardInit(board);
 
@@ -3356,7 +3379,8 @@ void SCL_printPGN(SCL_Record r, SCL_PutCharFunction putCharFunc, SCL_Board initi
 }
 
 void SCL_recordCopy(SCL_Record recordFrom, SCL_Record recordTo) {
-    for(uint16_t i = 0; i < SCL_RECORD_MAX_SIZE; ++i) recordTo[i] = recordFrom[i];
+    for(uint16_t i = 0; i < SCL_RECORD_MAX_SIZE; ++i)
+        recordTo[i] = recordFrom[i];
 }
 
 void SCL_gameInit(SCL_Game* game, const SCL_Board startState) {
@@ -3369,7 +3393,8 @@ void SCL_gameInit(SCL_Game* game, const SCL_Board startState) {
 
     SCL_recordInit(game->record);
 
-    for(uint8_t i = 0; i < 14; ++i) game->prevMoves[i] = 0;
+    for(uint8_t i = 0; i < 14; ++i)
+        game->prevMoves[i] = 0;
 
     game->state = SCL_GAME_STATE_PLAYING;
     game->ply = 0;
@@ -3419,7 +3444,8 @@ void SCL_gameMakeMove(SCL_Game* game, uint8_t squareFrom, uint8_t squareTo, char
 
     game->ply++;
 
-    for(uint8_t i = 0; i < 14 - 2; ++i) game->prevMoves[i] = game->prevMoves[i + 2];
+    for(uint8_t i = 0; i < 14 - 2; ++i)
+        game->prevMoves[i] = game->prevMoves[i + 2];
 
     game->prevMoves[12] = squareFrom;
     game->prevMoves[13] = squareTo;

+ 4 - 2
chess/sam/stm32_sam.cpp

@@ -3304,7 +3304,8 @@ void STM32SAM::AddInflection(unsigned char mem48, unsigned char phase1) {
 
     // FIXME: Explain this fix better, it's not obvious
     // ML : A =, fixes a problem with invalid pitch with '.'
-    while((A = pitches[X]) == 127) X++;
+    while((A = pitches[X]) == 127)
+        X++;
 
 pos48398:
     //48398: CLC
@@ -3787,7 +3788,8 @@ int STM32SAM::Parser1() {
     Y = 0;
 
     // CLEAR THE STRESS TABLE
-    for(i = 0; i < 256; i++) stress[i] = 0;
+    for(i = 0; i < 256; i++)
+        stress[i] = 0;
 
     // THIS CODE MATCHES THE PHONEME LETTERS TO THE TABLE
     // pos41078:

+ 2 - 4
chess/views/flipchess_scene_1.c

@@ -652,8 +652,7 @@ void flipchess_scene_1_exit(void* context) {
     furi_assert(context);
     FlipChessScene1* instance = (FlipChessScene1*)context;
 
-    with_view_model(
-        instance->view, FlipChessScene1Model * model, { model->paramExit = 0; }, true);
+    with_view_model(instance->view, FlipChessScene1Model * model, { model->paramExit = 0; }, true);
 }
 
 void flipchess_scene_1_enter(void* context) {
@@ -714,8 +713,7 @@ FlipChessScene1* flipchess_scene_1_alloc() {
 void flipchess_scene_1_free(FlipChessScene1* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, FlipChessScene1Model * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, FlipChessScene1Model * model, { UNUSED(model); }, true);
 
     view_free(instance->view);
     free(instance);

+ 1 - 2
chess/views/flipchess_startscreen.c

@@ -146,8 +146,7 @@ FlipChessStartscreen* flipchess_startscreen_alloc() {
 void flipchess_startscreen_free(FlipChessStartscreen* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, FlipChessStartscreenModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, FlipChessStartscreenModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 2 - 4
cntdown_timer/views/countdown_view.c

@@ -268,8 +268,7 @@ static void handle_time_setting_select(InputKey key, CountDownTimView* cdv) {
     }
 
     // load current selection from model context
-    with_view_model(
-        cdv->view, CountDownModel * model, { selection = model->select; }, false);
+    with_view_model(cdv->view, CountDownModel * model, { selection = model->select; }, false);
 
     // select
     switch(key) {
@@ -318,8 +317,7 @@ static void handle_time_setting_select(InputKey key, CountDownTimView* cdv) {
     }
 
     // save selection to model context
-    with_view_model(
-        cdv->view, CountDownModel * model, { model->select = selection; }, false);
+    with_view_model(cdv->view, CountDownModel * model, { model->select = selection; }, false);
 }
 
 static void draw_selection(Canvas* canvas, CountDownViewSelect selection) {

+ 1 - 2
cross_remote/helpers/gui/int_input.c

@@ -384,6 +384,5 @@ void int_input_set_result_callback(
 }
 
 void int_input_set_header_text(IntInput* int_input, const char* text) {
-    with_view_model(
-        int_input->view, IntInputModel * model, { model->header = text; }, true);
+    with_view_model(int_input->view, IntInputModel * model, { model->header = text; }, true);
 }

+ 1 - 2
cross_remote/views/xremote_infoscreen.c

@@ -100,8 +100,7 @@ XRemoteInfoscreen* xremote_infoscreen_alloc() {
 void xremote_infoscreen_free(XRemoteInfoscreen* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, XRemoteInfoscreenModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, XRemoteInfoscreenModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
cross_remote/views/xremote_pause_set.c

@@ -131,8 +131,7 @@ View* xremote_pause_set_get_view(XRemotePauseSet* instance) {
 void xremote_pause_set_free(XRemotePauseSet* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, XRemotePauseSetModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, XRemotePauseSetModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
cross_remote/views/xremote_transmit.c

@@ -154,8 +154,7 @@ void xremote_transmit_enter(void* context) {
 void xremote_transmit_free(XRemoteTransmit* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, XRemoteTransmitModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, XRemoteTransmitModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 2 - 4
dap_link/gui/views/dap_main_view.c

@@ -148,8 +148,7 @@ void dap_main_view_set_left_callback(
 }
 
 void dap_main_view_set_mode(DapMainView* dap_main_view, DapMainViewMode mode) {
-    with_view_model(
-        dap_main_view->view, DapMainViewModel * model, { model->mode = mode; }, false);
+    with_view_model(dap_main_view->view, DapMainViewModel * model, { model->mode = mode; }, false);
 }
 
 void dap_main_view_set_dap(DapMainView* dap_main_view, bool active) {
@@ -173,8 +172,7 @@ void dap_main_view_set_baudrate(DapMainView* dap_main_view, uint32_t baudrate) {
 }
 
 void dap_main_view_update(DapMainView* dap_main_view) {
-    with_view_model(
-        dap_main_view->view, DapMainViewModel * model, { UNUSED(model); }, true);
+    with_view_model(dap_main_view->view, DapMainViewModel * model, { UNUSED(model); }, true);
 }
 
 void dap_main_view_set_version(DapMainView* dap_main_view, DapMainViewVersion version) {

+ 2 - 5
dap_link/usb/usb_winusb.h

@@ -9,11 +9,8 @@
 
 #define USB_WINUSB_WINDOWS_VERSION 0x06030000 // Windows 8.1
 
-#define USB_WINUSB_PLATFORM_CAPABILITY_ID                                                         \
-    {                                                                                             \
-        0xdf, 0x60, 0xdd, 0xd8, 0x89, 0x45, 0xc7, 0x4c, 0x9c, 0xd2, 0x65, 0x9d, 0x9e, 0x64, 0x8a, \
-            0x9f                                                                                  \
-    }
+#define USB_WINUSB_PLATFORM_CAPABILITY_ID \
+    {0xdf, 0x60, 0xdd, 0xd8, 0x89, 0x45, 0xc7, 0x4c, 0x9c, 0xd2, 0x65, 0x9d, 0x9e, 0x64, 0x8a, 0x9f}
 
 enum // WinUSB Microsoft OS 2.0 descriptor request codes
 {

+ 2 - 1
doom/display.h

@@ -202,7 +202,8 @@ void drawPixel(int8_t x, int8_t y, bool color, bool raycasterViewport, Canvas* c
 void drawChar(int8_t x, int8_t y, char ch, Canvas* const canvas) {
     uint8_t lsb;
     uint8_t c = 0;
-    while(CHAR_MAP[c] != ch && CHAR_MAP[c] != '\0') c++;
+    while(CHAR_MAP[c] != ch && CHAR_MAP[c] != '\0')
+        c++;
     for(uint8_t i = 0; i < 6; i++) {
         //lsb = (char_arr[c][i] >> 4);
         lsb = reverse_bits(char_arr[c][i]);

+ 12 - 6
esubghz_chat/crypto/gcm.c

@@ -291,12 +291,14 @@ int gcm_start(
         p = iv;
         while(iv_len > 0) {
             use_len = (iv_len < 16) ? iv_len : 16;
-            for(i = 0; i < use_len; i++) ctx->y[i] ^= p[i];
+            for(i = 0; i < use_len; i++)
+                ctx->y[i] ^= p[i];
             gcm_mult(ctx, ctx->y, ctx->y);
             iv_len -= use_len;
             p += use_len;
         }
-        for(i = 0; i < 16; i++) ctx->y[i] ^= work_buf[i];
+        for(i = 0; i < 16; i++)
+            ctx->y[i] ^= work_buf[i];
         gcm_mult(ctx, ctx->y, ctx->y);
     }
     if((ret = aes_cipher(&ctx->aes_ctx, ctx->y, ctx->base_ectr)) != 0) return (ret);
@@ -305,7 +307,8 @@ int gcm_start(
     p = add;
     while(add_len > 0) {
         use_len = (add_len < 16) ? add_len : 16;
-        for(i = 0; i < use_len; i++) ctx->buf[i] ^= p[i];
+        for(i = 0; i < use_len; i++)
+            ctx->buf[i] ^= p[i];
         gcm_mult(ctx, ctx->buf, ctx->buf);
         add_len -= use_len;
         p += use_len;
@@ -409,9 +412,11 @@ int gcm_finish(
         PUT_UINT32_BE((orig_len >> 32), work_buf, 8);
         PUT_UINT32_BE((orig_len), work_buf, 12);
 
-        for(i = 0; i < 16; i++) ctx->buf[i] ^= work_buf[i];
+        for(i = 0; i < 16; i++)
+            ctx->buf[i] ^= work_buf[i];
         gcm_mult(ctx, ctx->buf, ctx->buf);
-        for(i = 0; i < tag_len; i++) tag[i] ^= ctx->buf[i];
+        for(i = 0; i < tag_len; i++)
+            tag[i] ^= ctx->buf[i];
     }
     return (0);
 }
@@ -492,7 +497,8 @@ int gcm_auth_decrypt(
         ctx, DECRYPT, iv, iv_len, add, add_len, input, output, length, check_tag, tag_len);
 
     // now we verify the authentication tag in 'constant time'
-    for(diff = 0, i = 0; i < tag_len; i++) diff |= tag[i] ^ check_tag[i];
+    for(diff = 0, i = 0; i < tag_len; i++)
+        diff |= tag[i] ^ check_tag[i];
 
     if(diff != 0) { // see whether any bits differed?
         memset(output, 0, length); // if so... wipe the output data

+ 6 - 12
ethernet/eth_save_process.h

@@ -13,18 +13,12 @@ typedef struct EthernetSaveConfig {
     File* log_file;
 } EthernetSaveConfig;
 
-#define ETHERNET_SAVE_DEFAULT_MAC \
-    { 0x10, 0x08, 0xDC, 0x47, 0x47, 0x54 }
-#define ETHERNET_SAVE_DEFAULT_IP \
-    { 192, 168, 0, 101 }
-#define ETHERNET_SAVE_DEFAULT_MASK \
-    { 255, 255, 255, 0 }
-#define ETHERNET_SAVE_DEFAULT_GATEWAY \
-    { 192, 168, 0, 1 }
-#define ETHERNET_SAVE_DEFAULT_DNS \
-    { 192, 168, 0, 1 }
-#define ETHERNET_SAVE_DEFAULT_PING_IP \
-    { 8, 8, 8, 8 }
+#define ETHERNET_SAVE_DEFAULT_MAC {0x10, 0x08, 0xDC, 0x47, 0x47, 0x54}
+#define ETHERNET_SAVE_DEFAULT_IP {192, 168, 0, 101}
+#define ETHERNET_SAVE_DEFAULT_MASK {255, 255, 255, 0}
+#define ETHERNET_SAVE_DEFAULT_GATEWAY {192, 168, 0, 1}
+#define ETHERNET_SAVE_DEFAULT_DNS {192, 168, 0, 1}
+#define ETHERNET_SAVE_DEFAULT_PING_IP {8, 8, 8, 8}
 
 EthernetSaveConfig* ethernet_save_process_malloc();
 void ethernet_save_process_free(EthernetSaveConfig* config);

+ 1 - 2
flipbip/views/flipbip_scene_1.c

@@ -735,8 +735,7 @@ FlipBipScene1* flipbip_scene_1_alloc() {
 void flipbip_scene_1_free(FlipBipScene1* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, FlipBipScene1Model * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, FlipBipScene1Model * model, { UNUSED(model); }, true);
 
     // free the address node
     memzero(s_addr_node, sizeof(HDNode));

+ 4 - 2
geiger/flipper_geiger.c

@@ -192,7 +192,8 @@ int32_t flipper_geiger_app() {
     mutexStruct mutexVal;
     mutexVal.cps = 0;
     mutexVal.cpm = 0;
-    for(int i = 0; i < SCREEN_SIZE_X; i++) mutexVal.line[i] = 0;
+    for(int i = 0; i < SCREEN_SIZE_X; i++)
+        mutexVal.line[i] = 0;
     mutexVal.coef = 1;
     mutexVal.data = 0;
     mutexVal.zoom = 2;
@@ -256,7 +257,8 @@ int32_t flipper_geiger_app() {
 
                     mutexVal.cps = 0;
                     mutexVal.cpm = 0;
-                    for(uint8_t i = 0; i < SCREEN_SIZE_X; i++) mutexVal.line[i] = 0;
+                    for(uint8_t i = 0; i < SCREEN_SIZE_X; i++)
+                        mutexVal.line[i] = 0;
                     mutexVal.newLinePosition = 0;
 
                     screenRefresh = 1;

+ 1 - 2
hex_viewer/views/hex_viewer_startscreen.c

@@ -236,8 +236,7 @@ HexViewerStartscreen* hex_viewer_startscreen_alloc() {
 void hex_viewer_startscreen_free(HexViewerStartscreen* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, HexViewerStartscreenModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, HexViewerStartscreenModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 2 - 1
ir_scope/ir_scope.c

@@ -26,7 +26,8 @@ static void state_set_autoscale(IRScopeState* state) {
 static void canvas_draw_str_outline(Canvas* canvas, int x, int y, const char* str) {
     canvas_set_color(canvas, ColorWhite);
     for(int y1 = -1; y1 <= 1; ++y1)
-        for(int x1 = -1; x1 <= 1; ++x1) canvas_draw_str(canvas, x + x1, y + y1, str);
+        for(int x1 = -1; x1 <= 1; ++x1)
+            canvas_draw_str(canvas, x + x1, y + y1, str);
 
     canvas_set_color(canvas, ColorBlack);
     canvas_draw_str(canvas, x, y, str);

+ 10 - 20
lightmeter/gui/views/main_view.c

@@ -261,56 +261,47 @@ void main_view_set_lux(MainView* main_view, float val) {
 
 void main_view_reset_lux(MainView* main_view) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->peakLux = 0; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->peakLux = 0; }, true);
 }
 
 void main_view_set_EV(MainView* main_view, float val) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->EV = val; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->EV = val; }, true);
 }
 
 void main_view_set_response(MainView* main_view, bool val) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->response = val; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->response = val; }, true);
 }
 
 void main_view_set_iso(MainView* main_view, int iso) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->iso = iso; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->iso = iso; }, true);
 }
 
 void main_view_set_nd(MainView* main_view, int nd) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->nd = nd; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->nd = nd; }, true);
 }
 
 void main_view_set_aperture(MainView* main_view, int aperture) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->aperture = aperture; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->aperture = aperture; }, true);
 }
 
 void main_view_set_speed(MainView* main_view, int speed) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->speed = speed; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->speed = speed; }, true);
 }
 
 void main_view_set_dome(MainView* main_view, bool dome) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->dome = dome; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->dome = dome; }, true);
 }
 
 void main_view_set_lux_only(MainView* main_view, bool lux_only) {
     furi_assert(main_view);
-    with_view_model(
-        main_view->view, MainViewModel * model, { model->lux_only = lux_only; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { model->lux_only = lux_only; }, true);
 }
 
 void main_view_set_measurement_resolution(MainView* main_view, int measurement_resolution) {
@@ -337,8 +328,7 @@ void main_view_set_sensor_type(MainView* main_view, int sensor_type) {
 bool main_view_get_dome(MainView* main_view) {
     furi_assert(main_view);
     bool val = false;
-    with_view_model(
-        main_view->view, MainViewModel * model, { val = model->dome; }, true);
+    with_view_model(main_view->view, MainViewModel * model, { val = model->dome; }, true);
     return val;
 }
 

+ 12 - 6
magspoof/helpers/mag_helpers.c

@@ -313,17 +313,23 @@ void mag_spoof(Mag* mag) {
             bits_t2_count,
             bits_t3_count);
         printf("T1 raw: ");
-        for(int i = 0; i < bits_t1_count / 16; i++) printf("%02x ", bits_t1_raw[i]);
+        for(int i = 0; i < bits_t1_count / 16; i++)
+            printf("%02x ", bits_t1_raw[i]);
         printf("\r\nT1 manchester: ");
-        for(int i = 0; i < bits_t1_count / 8; i++) printf("%02x ", bits_t1_manchester[i]);
+        for(int i = 0; i < bits_t1_count / 8; i++)
+            printf("%02x ", bits_t1_manchester[i]);
         printf("\r\nT2 raw: ");
-        for(int i = 0; i < bits_t2_count / 16; i++) printf("%02x ", bits_t2_raw[i]);
+        for(int i = 0; i < bits_t2_count / 16; i++)
+            printf("%02x ", bits_t2_raw[i]);
         printf("\r\nT2 manchester: ");
-        for(int i = 0; i < bits_t2_count / 8; i++) printf("%02x ", bits_t2_manchester[i]);
+        for(int i = 0; i < bits_t2_count / 8; i++)
+            printf("%02x ", bits_t2_manchester[i]);
         printf("\r\nT3 raw: ");
-        for(int i = 0; i < bits_t3_count / 16; i++) printf("%02x ", bits_t3_raw[i]);
+        for(int i = 0; i < bits_t3_count / 16; i++)
+            printf("%02x ", bits_t3_raw[i]);
         printf("\r\nT3 manchester: ");
-        for(int i = 0; i < bits_t3_count / 8; i++) printf("%02x ", bits_t3_manchester[i]);
+        for(int i = 0; i < bits_t3_count / 8; i++)
+            printf("%02x ", bits_t3_manchester[i]);
         printf("\r\nBitwise emulation done\r\n\r\n");
     }
 

+ 1 - 2
malveke_gb_cartridge/views/gb_cartridge_scene_1.c

@@ -398,8 +398,7 @@ GBCartridgeScene1* gb_cartridge_scene_1_alloc() {
 void gb_cartridge_scene_1_free(GBCartridgeScene1* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, GameBoyCartridgeModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, GameBoyCartridgeModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
malveke_gb_cartridge/views/gb_cartridge_startscreen.c

@@ -143,8 +143,7 @@ GBCartridgeStartscreen* gb_cartridge_startscreen_alloc() {
 void gb_cartridge_startscreen_free(GBCartridgeStartscreen* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, GBCartridgeStartscreenModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, GBCartridgeStartscreenModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
malveke_gb_emulator/malveke_gb_emulator.c

@@ -178,8 +178,7 @@ static int32_t malveke_gb_emulator_worker(void* context) {
             } while(length > 0);
 
             notification_message(app->notification, &sequence_notification);
-            with_view_model(
-                app->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 

+ 1 - 2
malveke_gb_live_camera/gb_live_camera.c

@@ -249,8 +249,7 @@ static int32_t gb_live_camera_worker(void* context) {
             } while(length > 0);
 
             notification_message(app->notification, &sequence_notification);
-            with_view_model(
-                app->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 

+ 1 - 2
malveke_gb_photo/views/boilerplate_scene_1.c

@@ -327,8 +327,7 @@ BoilerplateScene1* boilerplate_scene_1_alloc() {
 void boilerplate_scene_1_free(BoilerplateScene1* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, BoilerplateScene1Model * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, BoilerplateScene1Model * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
malveke_gb_photo/views/boilerplate_startscreen.c

@@ -104,8 +104,7 @@ BoilerplateStartscreen* boilerplate_startscreen_alloc() {
 
 void boilerplate_startscreen_free(BoilerplateStartscreen* instance) {
     furi_assert(instance);
-    with_view_model(
-        instance->view, BoilerplateStartscreenModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, BoilerplateStartscreenModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
malveke_gba_cartridge/views/gba_cartridge_scene_1.c

@@ -303,8 +303,7 @@ GBACartridgeScene1* gba_cartridge_scene_1_alloc() {
 void gba_cartridge_scene_1_free(GBACartridgeScene1* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, GameBoyCartridgeModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, GameBoyCartridgeModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 1 - 2
malveke_pin_test/malveke_pin_test.c

@@ -139,8 +139,7 @@ static UartEchoApp* gb_live_camera_app_alloc() {
     view_set_input_callback(app->view, gb_live_camera_view_input_callback);
     view_allocate_model(app->view, ViewModelTypeLocking, sizeof(UartDumpModel));
 
-    with_view_model(
-        app->view, UartDumpModel * model, { model->pin = 2; }, true);
+    with_view_model(app->view, UartDumpModel * model, { model->pin = 2; }, true);
 
     view_set_previous_callback(app->view, gb_live_camera_exit);
     view_dispatcher_add_view(app->view_dispatcher, 0, app->view);

+ 4 - 2
mass_storage/helpers/mass_storage_usb.c

@@ -455,14 +455,16 @@ MassStorageUsb* mass_storage_usb_start(const char* filename, SCSIDeviceFunc fn)
     struct usb_string_descriptor* str_prod_descr = malloc(len * 2 + 2);
     str_prod_descr->bLength = len * 2 + 2;
     str_prod_descr->bDescriptorType = USB_DTYPE_STRING;
-    for(uint8_t i = 0; i < len; i++) str_prod_descr->wString[i] = name[i];
+    for(uint8_t i = 0; i < len; i++)
+        str_prod_descr->wString[i] = name[i];
     mass->usb.str_prod_descr = str_prod_descr;
 
     len = strlen(filename);
     struct usb_string_descriptor* str_serial_descr = malloc(len * 2 + 2);
     str_serial_descr->bLength = len * 2 + 2;
     str_serial_descr->bDescriptorType = USB_DTYPE_STRING;
-    for(uint8_t i = 0; i < len; i++) str_serial_descr->wString[i] = filename[i];
+    for(uint8_t i = 0; i < len; i++)
+        str_serial_descr->wString[i] = filename[i];
     mass->usb.str_serial_descr = str_serial_descr;
 
     mass->fn = fn;

+ 1 - 2
mayhem_camera/camera.c

@@ -212,8 +212,7 @@ static int32_t camera_worker(void* context) {
             } while(length > 0);
 
             notification_message(app->notification, &sequence_notification);
-            with_view_model(
-                app->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 

+ 2 - 1
mayhem_marauder/script/cJSON.c

@@ -278,7 +278,8 @@ double string_to_double(const char* str, char** endptr) {
     int sign = 1;
     const char* p = str;
 
-    while(isspace((unsigned char)*p)) p++;
+    while(isspace((unsigned char)*p))
+        p++;
 
     if(*p == '-') {
         sign = -1;

+ 2 - 1
mayhem_marauder/script/wifi_marauder_script_executor.c

@@ -2,7 +2,8 @@
 #include "wifi_marauder_script_executor.h"
 
 void _wifi_marauder_script_delay(WifiMarauderScriptWorker* worker, uint32_t delay_secs) {
-    for(uint32_t i = 0; i < delay_secs && worker->is_running; i++) furi_delay_ms(1000);
+    for(uint32_t i = 0; i < delay_secs && worker->is_running; i++)
+        furi_delay_ms(1000);
 }
 
 void _send_stop(WifiMarauderScriptWorker* worker) {

+ 1 - 2
mayhem_motion/uart_echo.c

@@ -132,8 +132,7 @@ static int32_t uart_echo_worker(void* context) {
             } while(length > 0);
 
             //notification_message(app->notification, &sequence_notification);
-            with_view_model(
-                app->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 

+ 1 - 2
mayhem_nannycam/uart_echo.c

@@ -126,8 +126,7 @@ static int32_t uart_echo_worker(void* context) {
             } while(length > 0);
 
             notification_message(app->notification, &sequence_notification);
-            with_view_model(
-                app->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 

+ 1 - 2
mayhem_qrcode/uart_echo.c

@@ -126,8 +126,7 @@ static int32_t uart_echo_worker(void* context) {
             } while(length > 0);
 
             notification_message(app->notification, &sequence_notification);
-            with_view_model(
-                app->view, UartDumpModel * model, { UNUSED(model); }, true);
+            with_view_model(app->view, UartDumpModel * model, { UNUSED(model); }, true);
         }
     }
 

+ 1 - 2
meal_pager/helpers/gui/int_input.c

@@ -385,6 +385,5 @@ void int_input_set_result_callback(
 }
 
 void int_input_set_header_text(IntInput* int_input, const char* text) {
-    with_view_model(
-        int_input->view, IntInputModel * model, { model->header = text; }, true);
+    with_view_model(int_input->view, IntInputModel * model, { model->header = text; }, true);
 }

+ 1 - 2
meal_pager/views/meal_pager_startscreen.c

@@ -116,8 +116,7 @@ Meal_PagerStartscreen* meal_pager_startscreen_alloc() {
 void meal_pager_startscreen_free(Meal_PagerStartscreen* instance) {
     furi_assert(instance);
 
-    with_view_model(
-        instance->view, Meal_PagerStartscreenModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, Meal_PagerStartscreenModel * model, { UNUSED(model); }, true);
     view_free(instance->view);
     free(instance);
 }

+ 4 - 8
meal_pager/views/meal_pager_transmit.c

@@ -77,8 +77,7 @@ void meal_pager_transmit_model_set_station(Meal_PagerTransmit* instance, uint32_
     Meal_PagerTransmitModel* model = view_get_model(instance->view);
     model->station = station;
     view_commit_model(instance->view, false);
-    with_view_model(
-        instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
 }
 
 void meal_pager_transmit_model_set_sending(Meal_PagerTransmit* instance, uint32_t value) {
@@ -86,8 +85,7 @@ void meal_pager_transmit_model_set_sending(Meal_PagerTransmit* instance, uint32_
     Meal_PagerTransmitModel* model = view_get_model(instance->view);
     model->sending = value;
     view_commit_model(instance->view, false);
-    with_view_model(
-        instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
 }
 
 void meal_pager_transmit_model_set_pager(Meal_PagerTransmit* instance, uint32_t pager) {
@@ -95,8 +93,7 @@ void meal_pager_transmit_model_set_pager(Meal_PagerTransmit* instance, uint32_t
     Meal_PagerTransmitModel* model = view_get_model(instance->view);
     model->pager = pager;
     view_commit_model(instance->view, false);
-    with_view_model(
-        instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
 }
 
 bool meal_pager_transmit_input(InputEvent* event, void* context) {
@@ -139,8 +136,7 @@ void meal_pager_transmit_enter(void* context) {
     FURI_LOG_D(TAG, "Scene 1 Enter");
     furi_assert(context);
     Meal_PagerTransmit* instance = (Meal_PagerTransmit*)context;
-    with_view_model(
-        instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
+    with_view_model(instance->view, Meal_PagerTransmitModel * model, { UNUSED(model); }, true);
 }
 
 Meal_PagerTransmit* meal_pager_transmit_alloc(void* context) {

+ 4 - 2
mfkey/crypto1.h

@@ -192,13 +192,15 @@ uint8_t napi_lfsr_rollback_bit(struct Crypto1State* s, uint32_t in, int fb) {
 uint32_t napi_lfsr_rollback_word(struct Crypto1State* s, uint32_t in, int fb) {
     int i;
     uint32_t ret = 0;
-    for(i = 31; i >= 0; --i) ret |= napi_lfsr_rollback_bit(s, BEBIT(in, i), fb) << (i ^ 24);
+    for(i = 31; i >= 0; --i)
+        ret |= napi_lfsr_rollback_bit(s, BEBIT(in, i), fb) << (i ^ 24);
     return ret;
 }
 
 static inline uint32_t prng_successor(uint32_t x, uint32_t n) {
     SWAPENDIAN(x);
-    while(n--) x = x >> 1 | (x >> 16 ^ x >> 18 ^ x >> 19 ^ x >> 21) << 31;
+    while(n--)
+        x = x >> 1 | (x >> 16 ^ x >> 18 ^ x >> 19 ^ x >> 21) << 31;
     return SWAPENDIAN(x);
 }
 

+ 2 - 1
nfc_magic/magic/protocols/gen2/crypto1.c

@@ -84,7 +84,8 @@ uint32_t crypto1_word(Crypto1* crypto1, uint32_t in, int is_encrypted) {
 
 uint32_t prng_successor(uint32_t x, uint32_t n) {
     SWAPENDIAN(x);
-    while(n--) x = x >> 1 | (x >> 16 ^ x >> 18 ^ x >> 19 ^ x >> 21) << 31;
+    while(n--)
+        x = x >> 1 | (x >> 16 ^ x >> 18 ^ x >> 19 ^ x >> 21) << 31;
 
     return SWAPENDIAN(x);
 }

+ 12 - 6
nrf24batch/nrf24batch.c

@@ -302,7 +302,8 @@ void free_store(void) {
         ListenFields = NULL;
     }
     if(Read_cmd_Total) {
-        for(uint16_t i = 0; i < Read_cmd_Total; i++) furi_string_free(Read_cmd[i]);
+        for(uint16_t i = 0; i < Read_cmd_Total; i++)
+            furi_string_free(Read_cmd[i]);
         Read_cmd_Total = 0;
     }
     if(Read_cmd) {
@@ -310,7 +311,8 @@ void free_store(void) {
         Read_cmd = NULL;
     }
     if(ReadBatch_cmd_Total) {
-        for(uint16_t i = 0; i < ReadBatch_cmd_Total; i++) furi_string_free(ReadBatch_cmd[i]);
+        for(uint16_t i = 0; i < ReadBatch_cmd_Total; i++)
+            furi_string_free(ReadBatch_cmd[i]);
         ReadBatch_cmd_Total = 0;
     }
     if(ReadBatch_cmd) {
@@ -318,7 +320,8 @@ void free_store(void) {
         ReadBatch_cmd = NULL;
     }
     if(WriteBatch_cmd_Total) {
-        for(uint16_t i = 0; i < WriteBatch_cmd_Total; i++) furi_string_free(WriteBatch_cmd[i]);
+        for(uint16_t i = 0; i < WriteBatch_cmd_Total; i++)
+            furi_string_free(WriteBatch_cmd[i]);
         WriteBatch_cmd_Total = 0;
     }
     if(WriteBatch_cmd) {
@@ -326,7 +329,8 @@ void free_store(void) {
         WriteBatch_cmd = NULL;
     }
     if(SetBatch_cmd_Total) {
-        for(uint16_t i = 0; i < SetBatch_cmd_Total; i++) furi_string_free(SetBatch_cmd[i]);
+        for(uint16_t i = 0; i < SetBatch_cmd_Total; i++)
+            furi_string_free(SetBatch_cmd[i]);
         SetBatch_cmd_Total = 0;
     }
     if(SetBatch_cmd) {
@@ -1065,7 +1069,8 @@ static void save_batch(void) {
                     stream_write_cstring(file_stream, "={");
                     p = (p2 += 2);
                     do {
-                        while(is_digit(p2, true) || *p2 == 'x') p2++;
+                        while(is_digit(p2, true) || *p2 == 'x')
+                            p2++;
                         stream_write(file_stream, (uint8_t*)p, p2 - p);
                         char c = *p2;
                         if(c == '\0') break;
@@ -1887,7 +1892,8 @@ int32_t nrf24batch_app(void* p) {
                                             }
                                             if(is_digit(p, Edit_hex)) {
                                                 Edit_start = p;
-                                                while(is_digit(p, Edit_hex)) p++;
+                                                while(is_digit(p, Edit_hex))
+                                                    p++;
                                                 Edit_pos = p - 1;
                                                 Edited = true;
                                                 Edit = 1;

+ 2 - 1
nrf24mousejacker/mousejacker_ducky.c

@@ -111,7 +111,8 @@ static void checksum(uint8_t* payload, size_t len) {
     // This is also from the KeyKeriki paper
     // Thanks Thorsten and Max!
     uint8_t cksum = 0xff;
-    for(size_t n = 0; n < len - 2; n++) cksum = (cksum - payload[n]) & 0xff;
+    for(size_t n = 0; n < len - 2; n++)
+        cksum = (cksum - payload[n]) & 0xff;
     cksum = (cksum + 1) & 0xff;
     payload[len - 1] = cksum;
 }

+ 4 - 2
nrf24scan/nrf24scan.c

@@ -863,7 +863,8 @@ bool nrf24_read_newpacket() {
                 while(shifted++ <
                       shift_max) { // Shift packet left by one bit if minimum payload fits
                     uint8_t i = 0;
-                    for(; i < packetsize - 1; i++) ptr[i] = (ptr[i] << 1) | (ptr[i + 1] >> 7);
+                    for(; i < packetsize - 1; i++)
+                        ptr[i] = (ptr[i] << 1) | (ptr[i + 1] >> 7);
                     ptr[i] <<= 1;
                     if(check_packet(ptr, packetsize - (shifted >> 3) - 1)) goto x_valid;
                 }
@@ -1108,7 +1109,8 @@ static void render_callback(Canvas* const canvas, void* ctx) {
                         }
                         if(view_log_arr_x == 0) {
                             add_to_str_hex_bytes(screen_buf, (char*)ptr, adrsize);
-                            for(int8_t j = 5 - adrsize; j > 0; j--) strcat(screen_buf, "  ");
+                            for(int8_t j = 5 - adrsize; j > 0; j--)
+                                strcat(screen_buf, "  ");
                             strcat(screen_buf, "-");
                             pre += 5 * 2 + 1;
                         } else {

+ 4 - 2
nrf24sniff/nrfsniff.c

@@ -223,7 +223,8 @@ void alt_address(uint8_t* addr, uint8_t* altaddr) {
     uint8_t tmpaddr[5];
 
     // swap bytes
-    for(int i = 0; i < 5; i++) tmpaddr[i] = addr[4 - i];
+    for(int i = 0; i < 5; i++)
+        tmpaddr[i] = addr[4 - i];
 
     // get address into 32-bit and 8-bit variables
     memcpy(macmess_hi_b, tmpaddr, 4);
@@ -241,7 +242,8 @@ void alt_address(uint8_t* addr, uint8_t* altaddr) {
     tmpaddr[4] = macmess_lo;
 
     // swap bytes back
-    for(int i = 0; i < 5; i++) altaddr[i] = tmpaddr[4 - i];
+    for(int i = 0; i < 5; i++)
+        altaddr[i] = tmpaddr[4 - i];
 }
 
 static bool previously_confirmed(uint8_t* addr) {

+ 2 - 4
pokemon_trading/views/trade.c

@@ -417,8 +417,7 @@ static void trade_draw_timer_callback(void* context) {
 
     struct trade_ctx* trade = (struct trade_ctx*)context;
 
-    with_view_model(
-        trade->view, struct trade_model * model, { model->ledon ^= 1; }, true);
+    with_view_model(trade->view, struct trade_model * model, { model->ledon ^= 1; }, true);
 }
 
 static void trade_draw_callback(Canvas* canvas, void* view_model) {
@@ -939,8 +938,7 @@ void* trade_alloc(
 
     view_set_context(trade->view, trade);
     view_allocate_model(trade->view, ViewModelTypeLockFree, sizeof(struct trade_model));
-    with_view_model(
-        trade->view, struct trade_model * model, { model->pdata = pdata; }, false);
+    with_view_model(trade->view, struct trade_model * model, { model->pdata = pdata; }, false);
 
     view_set_draw_callback(trade->view, trade_draw_callback);
     view_set_input_callback(trade->view, trade_input_callback);

+ 2 - 1
protoview/app.c

@@ -144,7 +144,8 @@ ProtoViewApp* protoview_app_alloc() {
     app->alert_dismiss_time = 0;
     app->current_view = ViewRawPulses;
     app->view_updating_mutex = furi_mutex_alloc(FuriMutexTypeNormal);
-    for(int j = 0; j < ViewLast; j++) app->current_subview[j] = 0;
+    for(int j = 0; j < ViewLast; j++)
+        app->current_subview[j] = 0;
     app->direct_sampling_enabled = false;
     app->view_privdata = malloc(PROTOVIEW_VIEW_PRIVDATA_LEN);
     memset(app->view_privdata, 0, PROTOVIEW_VIEW_PRIVDATA_LEN);

+ 2 - 1
protoview/app_subghz.c

@@ -143,7 +143,8 @@ void radio_tx_signal(ProtoViewApp* app, FuriHalSubGhzAsyncTxCallback data_feeder
     FURI_LOG_E(TAG, "Switched to frequency: %lu", value);
 
     subghz_devices_start_async_tx(app->radio_device, data_feeder, ctx);
-    while(!subghz_devices_is_async_complete_tx(app->radio_device)) furi_delay_ms(10);
+    while(!subghz_devices_is_async_complete_tx(app->radio_device))
+        furi_delay_ms(10);
     subghz_devices_stop_async_tx(app->radio_device);
     subghz_devices_idle(app->radio_device);
 

+ 4 - 2
protoview/crc.c

@@ -24,13 +24,15 @@ uint8_t crc8(const uint8_t* data, size_t len, uint8_t init, uint8_t poly) {
 /* Sum all the specified bytes modulo 256.
  * Initialize the sum with 'init' (usually 0). */
 uint8_t sum_bytes(const uint8_t* data, size_t len, uint8_t init) {
-    for(size_t i = 0; i < len; i++) init += data[i];
+    for(size_t i = 0; i < len; i++)
+        init += data[i];
     return init;
 }
 
 /* Perform the bitwise xor of all the specified bytes.
  * Initialize xor value with 'init' (usually 0). */
 uint8_t xor_bytes(const uint8_t* data, size_t len, uint8_t init) {
-    for(size_t i = 0; i < len; i++) init ^= data[i];
+    for(size_t i = 0; i < len; i++)
+        init ^= data[i];
     return init;
 }

+ 2 - 1
protoview/fields.c

@@ -260,7 +260,8 @@ bool field_incr_value(ProtoViewField* f, int incr) {
 
 /* Free a field set and its contained fields. */
 void fieldset_free(ProtoViewFieldSet* fs) {
-    for(uint32_t j = 0; j < fs->numfields; j++) field_free(fs->fields[j]);
+    for(uint32_t j = 0; j < fs->numfields; j++)
+        field_free(fs->fields[j]);
     free(fs->fields);
     free(fs);
 }

+ 2 - 1
protoview/protocols/keeloq.c

@@ -45,7 +45,8 @@ static bool decode(uint8_t* bits, uint32_t numbytes, uint32_t numbits, ProtoView
      * symbols of gap, to avoid missing the signal for a matter of wrong
      * timing. */
     uint8_t gap_len = 0;
-    while(gap_len <= 7 && bitmap_get(bits, numbytes, off + gap_len) == 0) gap_len++;
+    while(gap_len <= 7 && bitmap_get(bits, numbytes, off + gap_len) == 0)
+        gap_len++;
     if(gap_len < 3 || gap_len > 7) return false;
 
     off += gap_len;

+ 2 - 1
protoview/protocols/tpms/citroen.c

@@ -36,7 +36,8 @@ static bool decode(uint8_t* bits, uint32_t numbytes, uint32_t numbits, ProtoView
      * is not included. The meaning of the first byte is unknown and
      * we don't display it. */
     uint8_t crc = 0;
-    for(int j = 1; j < 10; j++) crc ^= raw[j];
+    for(int j = 1; j < 10; j++)
+        crc ^= raw[j];
     if(crc != 0) return false; /* Require sane checksum. */
 
     info->pulses_count = (off + 8 * 10 * 2) - info->start_off;

+ 2 - 1
protoview/protocols/tpms/ford.c

@@ -35,7 +35,8 @@ static bool decode(uint8_t* bits, uint32_t numbytes, uint32_t numbits, ProtoView
 
     /* CRC is just the sum of the first 7 bytes MOD 256. */
     uint8_t crc = 0;
-    for(int j = 0; j < 7; j++) crc += raw[j];
+    for(int j = 0; j < 7; j++)
+        crc += raw[j];
     if(crc != raw[7]) return false; /* Require sane CRC. */
 
     info->pulses_count = (off + 8 * 8 * 2) - info->start_off;

+ 2 - 1
protoview/protocols/tpms/schrader_eg53ma4.c

@@ -40,7 +40,8 @@ static bool decode(uint8_t* bits, uint32_t numbytes, uint32_t numbits, ProtoView
 
     /* CRC is just all bytes added mod 256. */
     uint8_t crc = 0;
-    for(int j = 0; j < 9; j++) crc += raw[j];
+    for(int j = 0; j < 9; j++)
+        crc += raw[j];
     if(crc != raw[9]) return false; /* Require sane CRC. */
 
     info->pulses_count = (off + 10 * 8 * 2) - info->start_off;

+ 4 - 2
protoview/signal.c

@@ -455,7 +455,8 @@ bool bitmap_match_bitmap(
  * string, stored at 'dst', that must have space at least for len+1 bytes.
  * The bits are extracted from the specified offset. */
 void bitmap_to_string(char* dst, uint8_t* b, uint32_t blen, uint32_t off, uint32_t len) {
-    for(uint32_t j = 0; j < len; j++) dst[j] = bitmap_get(b, blen, off + j) ? '1' : '0';
+    for(uint32_t j = 0; j < len; j++)
+        dst[j] = bitmap_get(b, blen, off + j) ? '1' : '0';
     dst[len] = 0;
 }
 
@@ -530,7 +531,8 @@ uint32_t convert_signal_to_bits(
          * and ignore it completely. */
         if(numbits == 0) continue;
 
-        while(numbits--) bitmap_set(b, blen, bitpos++, level);
+        while(numbits--)
+            bitmap_set(b, blen, bitpos++, level);
     }
     return bitpos;
 }

+ 2 - 1
protoview/ui.c

@@ -138,7 +138,8 @@ void canvas_draw_str_with_border(
      * border, then write the actual string in the other color in the
      * middle. */
     canvas_set_color(canvas, border_color);
-    for(int j = 0; j < 8; j++) canvas_draw_str(canvas, x + dir[j].x, y + dir[j].y, str);
+    for(int j = 0; j < 8; j++)
+        canvas_draw_str(canvas, x + dir[j].x, y + dir[j].y, str);
     canvas_set_color(canvas, text_color);
     canvas_draw_str(canvas, x, y, str);
     canvas_set_color(canvas, ColorBlack);

+ 8 - 4
protoview/view_build.c

@@ -36,7 +36,8 @@ static void select_prev_decoder(ProtoViewApp* app) {
     do {
         if(privdata->cur_decoder == 0) {
             /* Go one after the last one to wrap around. */
-            while(Decoders[privdata->cur_decoder]) privdata->cur_decoder++;
+            while(Decoders[privdata->cur_decoder])
+                privdata->cur_decoder++;
         }
         privdata->cur_decoder--;
     } while(Decoders[privdata->cur_decoder]->get_fields == NULL);
@@ -194,10 +195,12 @@ static void process_input_set_fields(ProtoViewApp* app, InputEvent input) {
         // The reason why we don't use a large increment directly
         // is that certain field types only support +1 -1 increments.
         int times = 10;
-        while(times--) increment_current_field(app, 1);
+        while(times--)
+            increment_current_field(app, 1);
     } else if(input.type == InputTypeRepeat && input.key == InputKeyLeft) {
         int times = 10;
-        while(times--) increment_current_field(app, -1);
+        while(times--)
+            increment_current_field(app, -1);
     } else if(input.type == InputTypeLong && input.key == InputKeyOk) {
         // Build the message in a fresh raw buffer.
         if(privdata->decoder->build_message) {
@@ -236,7 +239,8 @@ void view_enter_build_message(ProtoViewApp* app) {
     // select it.
     if(app->signal_decoded && app->msg_info->decoder->get_fields &&
        app->msg_info->decoder->build_message) {
-        while(Decoders[privdata->cur_decoder] != app->msg_info->decoder) select_next_decoder(app);
+        while(Decoders[privdata->cur_decoder] != app->msg_info->decoder)
+            select_next_decoder(app);
     }
 }
 

+ 2 - 1
protoview/view_settings.c

@@ -84,7 +84,8 @@ void process_input_settings(ProtoViewApp* app, InputEvent input) {
             uint32_t count = 0;
             uint32_t modid = app->modulation;
 
-            while(ProtoViewModulations[count].name != NULL) count++;
+            while(ProtoViewModulations[count].name != NULL)
+                count++;
             if(input.key == InputKeyUp) {
                 modid = modid == 0 ? count - 1 : modid - 1;
             } else if(input.key == InputKeyDown) {

+ 2 - 1
solitaire/common/ui.c

@@ -23,7 +23,8 @@ void add_new_tilemap(uint8_t* data, unsigned long iconId) {
     tileMapCount++;
     tileMap = malloc(sizeof(TileMap) * tileMapCount);
     if(tileMapCount > 1) {
-        for(uint8_t i = 0; i < tileMapCount; i++) tileMap[i] = old[i];
+        for(uint8_t i = 0; i < tileMapCount; i++)
+            tileMap[i] = old[i];
     }
     tileMap[tileMapCount - 1] = (TileMap){data, iconId};
 }

+ 4 - 2
solitaire/solitaire.c

@@ -449,7 +449,8 @@ void init(GameState* game_state) {
 
 void init_start(GameState* game_state) {
     game_state->input = InputKeyMAX;
-    for(uint8_t i = 0; i < 7; i++) init_hand(&(game_state->bottom_columns[i]), 21);
+    for(uint8_t i = 0; i < 7; i++)
+        init_hand(&(game_state->bottom_columns[i]), 21);
 
     init_hand(&(game_state->dragging_hand), 13);
     game_state->animation.buffer = make_buffer();
@@ -573,7 +574,8 @@ int32_t solitaire_app(void* p) {
 free_and_exit:
     free(game_state->animation.buffer);
     ui_cleanup();
-    for(uint8_t i = 0; i < 7; i++) free_hand(&(game_state->bottom_columns[i]));
+    for(uint8_t i = 0; i < 7; i++)
+        free_hand(&(game_state->bottom_columns[i]));
 
     free(game_state->deck.cards);
     free(game_state);

+ 2 - 1
t5577_multiwriter/protocols/EM41XX.c

@@ -17,7 +17,8 @@
 
 bool get_parity(uint16_t data) {
     bool result = 0;
-    for(int i = 0; i < 16; i++) result ^= ((data >> i) & 1);
+    for(int i = 0; i < 16; i++)
+        result ^= ((data >> i) & 1);
     return result;
 }
 

+ 2 - 1
tama_p1/tama_p1.c

@@ -694,7 +694,8 @@ static void tama_p1_save_state() {
 static int32_t tama_p1_worker(void* context) {
     bool running = true;
     FuriMutex* mutex = context;
-    while(furi_mutex_acquire(mutex, FuriWaitForever) != FuriStatusOk) furi_delay_tick(1);
+    while(furi_mutex_acquire(mutex, FuriWaitForever) != FuriStatusOk)
+        furi_delay_tick(1);
 
     cpu_sync_ref_timestamp();
     LL_TIM_EnableCounter(TIM2);

+ 4 - 2
text2sam/stm32_sam.cpp

@@ -3304,7 +3304,8 @@ void STM32SAM::AddInflection(unsigned char mem48, unsigned char phase1) {
 
     // FIXME: Explain this fix better, it's not obvious
     // ML : A =, fixes a problem with invalid pitch with '.'
-    while((A = pitches[X]) == 127) X++;
+    while((A = pitches[X]) == 127)
+        X++;
 
 pos48398:
     //48398: CLC
@@ -3787,7 +3788,8 @@ int STM32SAM::Parser1() {
     Y = 0;
 
     // CLEAR THE STRESS TABLE
-    for(i = 0; i < 256; i++) stress[i] = 0;
+    for(i = 0; i < 256; i++)
+        stress[i] = 0;
 
     // THIS CODE MATCHES THE PHONEME LETTERS TO THE TABLE
     // pos41078:

+ 4 - 2
unitemp/interfaces/SingleWireSensor.c

@@ -217,9 +217,11 @@ UnitempStatus unitemp_singlewire_update(Sensor* sensor) {
         for(uint8_t b = 7; b != 255; b--) {
             uint16_t hT = 0, lT = 0;
             //Пока линия в низком уровне, инкремент переменной lT
-            while(!furi_hal_gpio_read(instance->gpio->pin) && lT != 65535) lT++;
+            while(!furi_hal_gpio_read(instance->gpio->pin) && lT != 65535)
+                lT++;
             //Пока линия в высоком уровне, инкремент переменной hT
-            while(furi_hal_gpio_read(instance->gpio->pin) && hT != 65535) hT++;
+            while(furi_hal_gpio_read(instance->gpio->pin) && hT != 65535)
+                hT++;
             //Если hT больше lT, то пришла единица
             if(hT > lT) data[a] |= (1 << b);
         }

+ 1 - 2
vgm_air_mouse/views/air_mouse_view.c

@@ -133,8 +133,7 @@ AirMouseView* air_mouse_view_alloc(AirMouseViewExit exit_callback, void* context
     view_set_enter_callback(air_mouse->view, air_mouse_view_enter);
     view_set_exit_callback(air_mouse->view, air_mouse_view_exit);
 
-    with_view_model(
-        air_mouse->view, AirMouseModel * model, { model->connected = true; }, true);
+    with_view_model(air_mouse->view, AirMouseModel * model, { model->connected = true; }, true);
 
     return air_mouse;
 }

+ 1 - 1
video_game_module_tool/flasher/rp2040.c

@@ -57,7 +57,7 @@
 #define RP_SSI_CTRL0_TMOD_EEPROM (3U << 8U)
 #define RP_SSI_CTRL0_DATA_BIT_MASK 0x001f0000U
 #define RP_SSI_CTRL0_DATA_BIT_SHIFT 16U
-#define RP_SSI_CTRL0_DATA_BITS(x) (((x)-1U) << RP_SSI_CTRL0_DATA_BIT_SHIFT)
+#define RP_SSI_CTRL0_DATA_BITS(x) (((x) - 1U) << RP_SSI_CTRL0_DATA_BIT_SHIFT)
 #define RP_SSI_CTRL0_MASK \
     (RP_SSI_CTRL0_FRF_MASK | RP_SSI_CTRL0_TMOD_MASK | RP_SSI_CTRL0_DATA_BIT_MASK)
 #define RP_SSI_ENABLE_SSI (1U << 0U)

+ 8 - 4
videopoker/poker.c

@@ -335,10 +335,12 @@ static void playcard(PokerPlayer* app) {
     c++;
     c = hold[5]; /* FIX for unused-but-set-variable */
     /* initialize deck */
-    for(i = 0; i < 52; i++) deck[i].gone = 0;
+    for(i = 0; i < 52; i++)
+        deck[i].gone = 0;
 
     /* initialize hold[] */
-    for(i = 0; i < 5; i++) hold[i] = 1;
+    for(i = 0; i < 5; i++)
+        hold[i] = 1;
 
     /* app->score -= bet; */
     if(app->score > app->highscore) {
@@ -347,7 +349,8 @@ static void playcard(PokerPlayer* app) {
 
     for(i = 0; i < 5; i++) {
         /* find a card not already dealt */
-        do crd = random() % 52;
+        do
+            crd = random() % 52;
         while(deck[crd].gone);
         hold[i] = 1;
         deck[crd].gone = 1;
@@ -525,7 +528,8 @@ static int recognize(PokerPlayer* app) {
     /* Sort hand into sorted hand (app->shand) */
 
     /* make copy of hand */
-    for(i = 0; i < 5; i++) tmp[i] = app->hand[i];
+    for(i = 0; i < 5; i++)
+        tmp[i] = app->hand[i];
 
     for(i = 0; i < 5; i++) {
         /* put lowest card in hand into next place in app->shand */

+ 16 - 13
wardriver/helpers/minmea.c

@@ -28,7 +28,8 @@ uint8_t minmea_checksum(const char* sentence) {
     uint8_t checksum = 0x00;
 
     // The optional checksum is an XOR of all bytes between "$" and "*".
-    while(*sentence && *sentence != '*') checksum ^= *sentence++;
+    while(*sentence && *sentence != '*')
+        checksum ^= *sentence++;
 
     return checksum;
 }
@@ -82,17 +83,18 @@ bool minmea_scan(const char* sentence, const char* format, ...) {
     va_start(ap, format);
 
     const char* field = sentence;
-#define next_field()                                 \
-    do {                                             \
-        /* Progress to the next field. */            \
-        while(minmea_isfield(*sentence)) sentence++; \
-        /* Make sure there is a field there. */      \
-        if(*sentence == ',') {                       \
-            sentence++;                              \
-            field = sentence;                        \
-        } else {                                     \
-            field = NULL;                            \
-        }                                            \
+#define next_field()                            \
+    do {                                        \
+        /* Progress to the next field. */       \
+        while(minmea_isfield(*sentence))        \
+            sentence++;                         \
+        /* Make sure there is a field there. */ \
+        if(*sentence == ',') {                  \
+            sentence++;                         \
+            field = sentence;                   \
+        } else {                                \
+            field = NULL;                       \
+        }                                       \
     } while(0)
 
     while(*format) {
@@ -209,7 +211,8 @@ bool minmea_scan(const char* sentence, const char* format, ...) {
             char* buf = va_arg(ap, char*);
 
             if(field) {
-                while(minmea_isfield(*field)) *buf++ = *field++;
+                while(minmea_isfield(*field))
+                    *buf++ = *field++;
             }
 
             *buf = '\0';

+ 4 - 8
wav_player/wav_player_view.c

@@ -134,20 +134,17 @@ View* wav_player_view_get_view(WavPlayerView* wav_view) {
 
 void wav_player_view_set_volume(WavPlayerView* wav_view, float volume) {
     furi_assert(wav_view);
-    with_view_model(
-        wav_view->view, WavPlayerViewModel * model, { model->volume = volume; }, true);
+    with_view_model(wav_view->view, WavPlayerViewModel * model, { model->volume = volume; }, true);
 }
 
 void wav_player_view_set_start(WavPlayerView* wav_view, size_t start) {
     furi_assert(wav_view);
-    with_view_model(
-        wav_view->view, WavPlayerViewModel * model, { model->start = start; }, true);
+    with_view_model(wav_view->view, WavPlayerViewModel * model, { model->start = start; }, true);
 }
 
 void wav_player_view_set_end(WavPlayerView* wav_view, size_t end) {
     furi_assert(wav_view);
-    with_view_model(
-        wav_view->view, WavPlayerViewModel * model, { model->end = end; }, true);
+    with_view_model(wav_view->view, WavPlayerViewModel * model, { model->end = end; }, true);
 }
 
 void wav_player_view_set_current(WavPlayerView* wav_view, size_t current) {
@@ -158,8 +155,7 @@ void wav_player_view_set_current(WavPlayerView* wav_view, size_t current) {
 
 void wav_player_view_set_play(WavPlayerView* wav_view, bool play) {
     furi_assert(wav_view);
-    with_view_model(
-        wav_view->view, WavPlayerViewModel * model, { model->play = play; }, true);
+    with_view_model(wav_view->view, WavPlayerViewModel * model, { model->play = play; }, true);
 }
 
 void wav_player_view_set_chans(WavPlayerView* wav_view, uint16_t chn) {

+ 2 - 1
wifi_marauder_companion/script/cJSON.c

@@ -278,7 +278,8 @@ double string_to_double(const char* str, char** endptr) {
     int sign = 1;
     const char* p = str;
 
-    while(isspace((unsigned char)*p)) p++;
+    while(isspace((unsigned char)*p))
+        p++;
 
     if(*p == '-') {
         sign = -1;

+ 2 - 1
wifi_marauder_companion/script/wifi_marauder_script_executor.c

@@ -2,7 +2,8 @@
 #include "wifi_marauder_script_executor.h"
 
 void _wifi_marauder_script_delay(WifiMarauderScriptWorker* worker, uint32_t delay_secs) {
-    for(uint32_t i = 0; i < delay_secs && worker->is_running; i++) furi_delay_ms(1000);
+    for(uint32_t i = 0; i < delay_secs && worker->is_running; i++)
+        furi_delay_ms(1000);
 }
 
 void _send_stop(WifiMarauderScriptWorker* worker) {

+ 2 - 1
wiiec/_image_tool/_convert.c

@@ -47,7 +47,8 @@ int main(int argc, char* argv[]) {
     }
 
     // Find white value
-    for(x = 1; x < img.bpp; x++) white = (white << 8) | 0xFF;
+    for(x = 1; x < img.bpp; x++)
+        white = (white << 8) | 0xFF;
 
     // build bit pattern
     // create the comment as we go

+ 4 - 2
wiiec/_image_tool/_convert_images.c

@@ -120,7 +120,8 @@ void show(
         for(unsigned int i = 0; i < img->len; i++, bp++) {
             // Compressed data? {tag, length, value}
             if(*bp == img->tag) {
-                for(uint16_t c = 0; c < bp[1]; c++) fnShow(bp[2]);
+                for(uint16_t c = 0; c < bp[1]; c++)
+                    fnShow(bp[2]);
                 bp += 3 - 1;
                 i += 3 - 1;
 
@@ -132,6 +133,7 @@ void show(
 
         // Not compressed
     } else {
-        for(unsigned int i = 0; i < img->len; i++, bp++) fnShow(*bp);
+        for(unsigned int i = 0; i < img->len; i++, bp++)
+            fnShow(*bp);
     }
 }

+ 4 - 2
wiiec/_image_tool/_convert_test.c

@@ -34,7 +34,8 @@ void show(const image_t* img) {
         for(unsigned int i = 0; i < img->len; i++, bp++) {
             // Compressed data? {tag, length, value}
             if(*bp == img->tag) {
-                for(uint16_t c = 0; c < bp[1]; c++) PLOTBYTE(bp[2]);
+                for(uint16_t c = 0; c < bp[1]; c++)
+                    PLOTBYTE(bp[2]);
                 bp += 3 - 1;
                 i += 3 - 1;
 
@@ -46,7 +47,8 @@ void show(const image_t* img) {
 
         // Not compressed
     } else {
-        for(unsigned int i = 0; i < img->len; i++, bp++) PLOTBYTE(*bp);
+        for(unsigned int i = 0; i < img->len; i++, bp++)
+            PLOTBYTE(*bp);
     }
 }
 

+ 4 - 2
wiiec/gfx/images.c

@@ -120,7 +120,8 @@ void show(
         for(unsigned int i = 0; i < img->len; i++, bp++) {
             // Compressed data? {tag, length, value}
             if(*bp == img->tag) {
-                for(uint16_t c = 0; c < bp[1]; c++) fnShow(bp[2]);
+                for(uint16_t c = 0; c < bp[1]; c++)
+                    fnShow(bp[2]);
                 bp += 3 - 1;
                 i += 3 - 1;
 
@@ -132,6 +133,7 @@ void show(
 
         // Not compressed
     } else {
-        for(unsigned int i = 0; i < img->len; i++, bp++) fnShow(*bp);
+        for(unsigned int i = 0; i < img->len; i++, bp++)
+            fnShow(*bp);
     }
 }

+ 2 - 1
wiiec/wii_i2c.c

@@ -108,7 +108,8 @@ static void decrypt(uint8_t* buf, const uint8_t* encKey, const uint8_t reg, unsi
 #else //! This is (I think) a shortcut for an all-zero key [not tested]
     (void)encKey;
     (void)reg;
-    for(uint8_t* p = buf; p < buf + len; p++) *p = (*p ^ 0x17) + 0x17;
+    for(uint8_t* p = buf; p < buf + len; p++)
+        *p = (*p ^ 0x17) + 0x17;
 #endif
 }