Skip to content

Commit 3debe04

Browse files
committed
[genpinmap] use current year instead of constant one
Signed-off-by: Frederic.Pillon <[email protected]>
1 parent 0042fa2 commit 3debe04

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/genpinmap/genpinmap_arduino.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import sys
22
import re
33
import os
4+
import datetime
45
from xml.dom import minidom
56
from xml.dom.minidom import parse, Node
67
io_list = [] #'PIN','name'
@@ -188,7 +189,7 @@ def store_qspi (pin, name, signal):
188189
def print_header():
189190
s = ("""/*
190191
*******************************************************************************
191-
* Copyright (c) 2016, STMicroelectronics
192+
* Copyright (c) %i, STMicroelectronics
192193
* All rights reserved.
193194
*
194195
* Redistribution and use in source and binary forms, with or without
@@ -223,7 +224,7 @@ def print_header():
223224
// If you change them, you will have to know what you do
224225
// =====
225226
226-
""" % re.sub('\.c$', '', out_filename))
227+
""" % (datetime.datetime.now().year, re.sub('\.c$', '', out_filename)))
227228
out_file.write( s)
228229

229230
def print_all_lists():

0 commit comments

Comments
 (0)