From d7d4c8b8060623eec9e1d09d850a3ed1cc644721 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20Ku=CC=88ndig?= Date: Tue, 14 Oct 2025 20:04:06 +0200 Subject: [PATCH] Add missing newlines - fixes error when building applications using the library with -Werror=newline-eof --- RetroWaveLib/Board/MasterGear.c | 2 +- RetroWaveLib/Board/MiniBlaster.c | 2 +- RetroWaveLib/Board/MiniBlaster.h | 2 +- RetroWaveLib/Platform/Linux_SPI.c | 2 +- RetroWaveLib/Platform/POSIX_SerialPort.c | 2 +- RetroWaveLib/Platform/STM32_HAL_SPI.c | 2 +- RetroWaveLib/Platform/STM32_HAL_SPI.h | 2 +- RetroWaveLib/Platform/Web_SerialPort.c | 2 +- RetroWaveLib/Platform/Win32_SerialPort.c | 2 +- RetroWaveLib/Platform/Win32_SerialPort.h | 2 +- RetroWaveLib/Protocol/Serial.c | 2 +- RetroWaveLib/Protocol/Serial.h | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/RetroWaveLib/Board/MasterGear.c b/RetroWaveLib/Board/MasterGear.c index e3f9c92..c8b4621 100644 --- a/RetroWaveLib/Board/MasterGear.c +++ b/RetroWaveLib/Board/MasterGear.c @@ -151,4 +151,4 @@ void retrowave_mastergear_queue_sn76489_right(RetroWaveContext *ctx, uint8_t val // ALL off ctx->cmd_buffer[ctx->cmd_buffer_used - 2] = 0xff; ctx->cmd_buffer[ctx->cmd_buffer_used - 1] = 0x00; -} \ No newline at end of file +} diff --git a/RetroWaveLib/Board/MiniBlaster.c b/RetroWaveLib/Board/MiniBlaster.c index 357351d..5ce50e2 100644 --- a/RetroWaveLib/Board/MiniBlaster.c +++ b/RetroWaveLib/Board/MiniBlaster.c @@ -82,4 +82,4 @@ void retrowave_miniblaster_queue(RetroWaveContext *ctx, uint8_t reg, uint8_t val ctx->cmd_buffer[ctx->cmd_buffer_used - 2] = 0xef; // A0 = 0 ctx->cmd_buffer[ctx->cmd_buffer_used - 1] = val; } -} \ No newline at end of file +} diff --git a/RetroWaveLib/Board/MiniBlaster.h b/RetroWaveLib/Board/MiniBlaster.h index a923944..c57bb5e 100644 --- a/RetroWaveLib/Board/MiniBlaster.h +++ b/RetroWaveLib/Board/MiniBlaster.h @@ -53,4 +53,4 @@ extern void retrowave_miniblaster_queue(RetroWaveContext *ctx, uint8_t reg, uint #ifdef __cplusplus }; -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Platform/Linux_SPI.c b/RetroWaveLib/Platform/Linux_SPI.c index c84a674..6ff73c5 100644 --- a/RetroWaveLib/Platform/Linux_SPI.c +++ b/RetroWaveLib/Platform/Linux_SPI.c @@ -187,4 +187,4 @@ void retrowave_deinit_linux_spi(RetroWaveContext *ctx) { free(pctx); } -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Platform/POSIX_SerialPort.c b/RetroWaveLib/Platform/POSIX_SerialPort.c index aa357c8..f7ab941 100644 --- a/RetroWaveLib/Platform/POSIX_SerialPort.c +++ b/RetroWaveLib/Platform/POSIX_SerialPort.c @@ -180,4 +180,4 @@ void retrowave_deinit_posix_serialport(RetroWaveContext *ctx) { free(pctx); } -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Platform/STM32_HAL_SPI.c b/RetroWaveLib/Platform/STM32_HAL_SPI.c index bfb4ce5..e1869cc 100644 --- a/RetroWaveLib/Platform/STM32_HAL_SPI.c +++ b/RetroWaveLib/Platform/STM32_HAL_SPI.c @@ -79,4 +79,4 @@ int retrowave_init_stm32_hal_spi(RetroWaveContext *ctx, void *hspi, void *cs_gpi void retrowave_deinit_stm32_hal_spi(RetroWaveContext *ctx) { free(ctx->user_data); } -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Platform/STM32_HAL_SPI.h b/RetroWaveLib/Platform/STM32_HAL_SPI.h index 3159571..0c84d5e 100644 --- a/RetroWaveLib/Platform/STM32_HAL_SPI.h +++ b/RetroWaveLib/Platform/STM32_HAL_SPI.h @@ -67,4 +67,4 @@ extern void retrowave_deinit_stm32_hal_spi(RetroWaveContext *ctx); #ifdef __cplusplus }; #endif -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Platform/Web_SerialPort.c b/RetroWaveLib/Platform/Web_SerialPort.c index 8384113..c524205 100644 --- a/RetroWaveLib/Platform/Web_SerialPort.c +++ b/RetroWaveLib/Platform/Web_SerialPort.c @@ -152,4 +152,4 @@ void retrowave_deinit_web_serialport(RetroWaveContext *ctx) { webserial_deinit(); } -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Platform/Win32_SerialPort.c b/RetroWaveLib/Platform/Win32_SerialPort.c index 4e923c4..233840b 100644 --- a/RetroWaveLib/Platform/Win32_SerialPort.c +++ b/RetroWaveLib/Platform/Win32_SerialPort.c @@ -151,4 +151,4 @@ void retrowave_deinit_win32_serialport(RetroWaveContext *ctx) { free(pctx); } -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Platform/Win32_SerialPort.h b/RetroWaveLib/Platform/Win32_SerialPort.h index 6cc6e79..c008d32 100644 --- a/RetroWaveLib/Platform/Win32_SerialPort.h +++ b/RetroWaveLib/Platform/Win32_SerialPort.h @@ -65,4 +65,4 @@ extern void retrowave_deinit_win32_serialport(RetroWaveContext *ctx); }; #endif -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Protocol/Serial.c b/RetroWaveLib/Protocol/Serial.c index 44f1d68..8334872 100644 --- a/RetroWaveLib/Protocol/Serial.c +++ b/RetroWaveLib/Protocol/Serial.c @@ -96,4 +96,4 @@ uint32_t retrowave_protocol_serial_pack(const void *_buf_in, uint32_t len_in, vo #ifdef __cplusplus }; -#endif \ No newline at end of file +#endif diff --git a/RetroWaveLib/Protocol/Serial.h b/RetroWaveLib/Protocol/Serial.h index 7f7fe66..8c4c220 100644 --- a/RetroWaveLib/Protocol/Serial.h +++ b/RetroWaveLib/Protocol/Serial.h @@ -61,4 +61,4 @@ extern uint32_t retrowave_protocol_serial_pack(const void *_buf_in, uint32_t len #ifdef __cplusplus }; -#endif \ No newline at end of file +#endif