fix site_code

This commit is contained in:
Daniel Frank 2017-11-03 21:09:12 +01:00
parent af3b4c09ed
commit ef8b330e32

View file

@ -28,7 +28,7 @@
},
<% if gluon_ath10k_mesh == "11s" -%>
mesh = {
id = '<%= site_code.prepend("00000000")[-8..-1].each_byte.map { |b| b.to_s(16) }.join.upcase %>',
id = '<%= ("00000000" + site_code)[-8..-1].each_byte.map { |b| b.to_s(16) }.join.upcase %>',
mcast_rate = 12000,
},
<% else -%>
@ -47,7 +47,7 @@
},
<% if gluon_ath10k_mesh == "11s" -%>
mesh = {
id = '<%= site_code.prepend("00000000")[-8..-1].each_byte.map { |b| b.to_s(16) }.join.upcase %>',
id = '<%= ("00000000" + site_code)[-8..-1].each_byte.map { |b| b.to_s(16) }.join.upcase %>',
mcast_rate = 12000,
},
<% else -%>