Skip to content

Commit 857ce97

Browse files
committed
Update copyrights, headers and formatting
Bump copyright years to include 2026 across multiple sources and standardize file headers (added/expanded MIT notices in several json/params files). Clean up include spacing and ordering, remove unused/commented blocks in applemidi, and apply various whitespace and formatting tweaks (lambda/brace formatting, blank-line fixes, comment alignment). These are non-functional cleanup changes to improve consistency and licensing metadata.
1 parent 326ad01 commit 857ce97

File tree

15 files changed

+125
-66
lines changed

15 files changed

+125
-66
lines changed

lib-configstore/src/set_factory_defaults.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file set_factory_defaults.cpp
33
*
44
*/
5-
/* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org
5+
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:info@gd32-dmx.org
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -27,7 +27,7 @@
2727
#undef NDEBUG
2828
#endif
2929

30-
#include "firmware/debug/debug_debug.h"
30+
#include "firmware/debug/debug_debug.h"
3131

3232
namespace configstore
3333
{

lib-display/src/sleep/display.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file display.cpp
33
*
44
*/
5-
/* Copyright (C) 2024-2025 by Arjan van Vught mailto:info@gd32-dmx.org
5+
/* Copyright (C) 2024-2026 by Arjan van Vught mailto:info@gd32-dmx.org
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -28,10 +28,8 @@
2828
#endif
2929

3030
#include "display.h"
31-
3231
#include "softwaretimers.h"
33-
34-
#include "firmware/debug/debug_debug.h"
32+
#include "firmware/debug/debug_debug.h"
3533

3634
static TimerHandle_t s_timer_id = kTimerIdNone;
3735

lib-displayudf/src/artnet/displayudfshowartnet.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#include "artnet.h"
3535
#include "dmxnode.h"
3636
#include "ip4/ip4_address.h"
37-
#include "firmware/debug/debug_debug.h"
37+
#include "firmware/debug/debug_debug.h"
3838

3939
void DisplayUdf::ShowArtNetNode()
4040
{

lib-displayudf/src/displayudf.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/**
22
* @file displayudf.cpp
33
*/
4-
/* Copyright (C) 2019-2025 by Arjan van Vught mailto:info@gd32-dmx.org
4+
/* Copyright (C) 2019-2026 by Arjan van Vught mailto:info@gd32-dmx.org
55
*
66
* Permission is hereby granted, free of charge, to any person obtaining a copy
77
* of this software and associated documentation files (the "Software"), to deal
@@ -31,7 +31,7 @@
3131
#include <cassert>
3232

3333
#include "displayudf.h"
34-
#include "firmware/debug/debug_debug.h"
34+
#include "firmware/debug/debug_debug.h"
3535

3636
DisplayUdf::DisplayUdf()
3737
{

lib-displayudf/src/e131/displayudfshowe131.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
#include "displayudf.h"
3434
#include "e131bridge.h"
3535
#include "dmxnode.h"
36-
#include "firmware/debug/debug_debug.h"
36+
#include "firmware/debug/debug_debug.h"
3737

3838
void DisplayUdf::ShowE131Bridge()
3939
{

lib-displayudf/src/json/displayudfparams.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#include "common/utils/utils_flags.h"
3939
#include "common/utils/utils_array.h"
4040
#include "common/utils/utils_enum.h"
41-
#include "firmware/debug/debug_debug.h"
41+
#include "firmware/debug/debug_debug.h"
4242
#include "displayudf.h"
4343

4444
using common::store::displayudf::Flags;
@@ -71,7 +71,7 @@ void DisplayUdfParams::SetFlipVertically(const char* val, uint32_t len)
7171
void DisplayUdfParams::SetLabel(const char* key, uint32_t key_len, const char* val, uint32_t val_len)
7272
{
7373
if (val_len > 1) return;
74-
74+
7575
DEBUG_PRINTF("%.*s ->%.*s", key_len, key, val_len, val);
7676

7777
const uint32_t kHash = Fnv1a32Runtime(key, static_cast<uint32_t>(key_len));

lib-dmx/src/json/dmxsendparams.cpp

Lines changed: 35 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,26 @@
11
/**
22
* @file dmxsendparams.cpp
33
*/
4-
/* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org */
5-
4+
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:infogd32-dmx.org
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
624

725
#ifdef DEBUG_DMXSENDPARAMS
826
#undef NDEBUG
@@ -40,37 +58,35 @@ DmxSendParams::DmxSendParams()
4058

4159
void DmxSendParams::SetBreakTime(const char* val, uint32_t len)
4260
{
43-
ParseAndApply<uint16_t>(val, len, [](uint16_t v) {
44-
store_dmx_send.break_time = v > dmx::transmit::kBreakTimeMin ? v : dmx::transmit::kBreakTimeMin;
45-
});
61+
ParseAndApply<uint16_t>(val, len, [](uint16_t v) { store_dmx_send.break_time = v > dmx::transmit::kBreakTimeMin ? v : dmx::transmit::kBreakTimeMin; });
4662
}
4763

4864
void DmxSendParams::SetMabTime(const char* val, uint32_t len)
4965
{
50-
ParseAndApply<uint16_t>(val, len, [](uint16_t v) {
51-
store_dmx_send.mab_time = v > dmx::transmit::kMabTimeMin ? v : dmx::transmit::kMabTimeMin;
52-
});
66+
ParseAndApply<uint16_t>(val, len, [](uint16_t v) { store_dmx_send.mab_time = v > dmx::transmit::kMabTimeMin ? v : dmx::transmit::kMabTimeMin; });
5367
}
5468

5569
void DmxSendParams::SetRefreshRate(const char* val, uint32_t len)
5670
{
57-
ParseAndApply<uint16_t>(val, len, [](uint16_t v) {
58-
store_dmx_send.refresh_rate = v;
59-
});
71+
ParseAndApply<uint16_t>(val, len, [](uint16_t v) { store_dmx_send.refresh_rate = v; });
6072
}
6173

6274
void DmxSendParams::SetSlotsCount(const char* val, uint32_t len)
6375
{
64-
ParseAndApply<uint16_t>(val, len, [](uint16_t v) {
65-
if (v >= 2 && v < dmx::kChannelsMax) {
66-
store_dmx_send.slots_count = RounddownSlots(v);
67-
} else {
68-
store_dmx_send.slots_count = RounddownSlots(dmx::kChannelsMax);
69-
}
70-
});
76+
ParseAndApply<uint16_t>(val, len,
77+
[](uint16_t v)
78+
{
79+
if (v >= 2 && v < dmx::kChannelsMax)
80+
{
81+
store_dmx_send.slots_count = RounddownSlots(v);
82+
}
83+
else
84+
{
85+
store_dmx_send.slots_count = RounddownSlots(dmx::kChannelsMax);
86+
}
87+
});
7188
}
7289

73-
7490
void DmxSendParams::Store(const char* buffer, uint32_t buffer_size)
7591
{
7692
ParseJsonWithTable(buffer, buffer_size, kDmxSendKeys);

lib-dmxnode/src/json/dmxnodeparams.cpp

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
/**
22
* @file dmxnodeparams.cpp
33
*/
4-
/* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org */
4+
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:infogd32-dmx.org
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
524

625
#ifdef DEBUG_DMXNODEPARAMS
726
#undef NDEBUG
@@ -21,7 +40,7 @@
2140
#include "configurationstore.h"
2241
#include "common/utils/utils_flags.h"
2342
#include "common/utils/utils_enum.h"
24-
#include "firmware/debug/debug_debug.h"
43+
#include "firmware/debug/debug_debug.h"
2544

2645
using common::store::dmxnode::Flags;
2746

lib-dmxnode/src/scenes/file/scenes.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
* @file scenes.cpp
33
*
44
*/
5-
/* Copyright (C) 2022 by Arjan van Vught mailto:info@orangepi-dmx.nl
5+
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:infogd32-dmx.org
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
88
* of this software and associated documentation files (the "Software"), to deal
@@ -33,7 +33,7 @@
3333
#include <unistd.h>
3434

3535
#include "dmxnode.h"
36-
#include "firmware/debug/debug_debug.h"
36+
#include "firmware/debug/debug_debug.h"
3737

3838
namespace dmxnode::scenes
3939
{

lib-e131/src/json/e131params.cpp

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,26 @@
11
/**
22
* @file e131params.cpp
33
*/
4-
/* Copyright (C) 2025 by Arjan van Vught mailto:info@gd32-dmx.org */
4+
/* Copyright (C) 2025-2026 by Arjan van Vught mailto:infogd32-dmx.org
5+
*
6+
* Permission is hereby granted, free of charge, to any person obtaining a copy
7+
* of this software and associated documentation files (the "Software"), to deal
8+
* in the Software without restriction, including without limitation the rights
9+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10+
* copies of the Software, and to permit persons to whom the Software is
11+
* furnished to do so, subject to the following conditions:
12+
13+
* The above copyright notice and this permission notice shall be included in
14+
* all copies or substantial portions of the Software.
15+
16+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22+
* THE SOFTWARE.
23+
*/
524

625
#ifdef DEBUG_E131PARAMS
726
#undef NDEBUG
@@ -73,7 +92,7 @@ void E131Params::Dump()
7392
printf("%s=%u\n", json::E131ParamsConst::kPriorityPort[port_index].name, store_dmxnode_.priority[port_index]);
7493
}
7594
}
76-
95+
7796
auto& e131bridge = *E131Bridge::Get();
7897
e131bridge.Print();
7998
}

0 commit comments

Comments
 (0)