Travis install time reduced (#3493)

This commit is contained in:
Bertrand Songis
2016-05-14 11:33:02 +02:00
parent 7b3dcec30e
commit f63a9c4cb7
3 changed files with 18 additions and 14 deletions
+4 -4
View File
@@ -49,10 +49,10 @@ void timerSet(int idx, int16_t val)
void initModelTimer(uint32_t idx, uint8_t mode, int16_t start = 0)
{
memset(&g_model.timers[0], 0, sizeof(g_model.timers[0]));
g_model.timers[0].mode = mode;
g_model.timers[0].start = start;
g_model.timers[0].countdownBeep = COUNTDOWN_SILENT;
memset(&g_model.timers[idx], 0, sizeof(TimerData));
g_model.timers[idx].mode = mode;
g_model.timers[idx].start = start;
g_model.timers[idx].countdownBeep = COUNTDOWN_SILENT;
}
/*
+3 -2
View File
@@ -1,4 +1,4 @@
#!/usr/bin/env python
#!/usr/bin/env python3
from __future__ import division
import sys
@@ -9,12 +9,13 @@ fileout = sys.argv[2]
# Read entire file
with open(filename, "rb") as fr:
sts = fr.read()
# Parse into chunks of 16 bytes
sts = [sts[i:i+16] for i in range(0, len(sts), 16)]
with open(fileout, "w") as fw:
for st in sts:
for b in st:
fw.write("0x%02x," % ord(b))
fw.write("0x%02x," % b)
fw.write("\n")
fw.write("\n")