[sky9x] Logs closed when model changed

This commit is contained in:
bsongis
2012-09-25 10:15:43 +00:00
parent 6d3bec464a
commit b2818b6b22
+5 -1
View File
@@ -466,6 +466,10 @@ void eeLoadModel(uint8_t id)
if (id<MAX_MODELS) {
#if defined(SDCARD)
closeLogs();
#endif
if (pulsesStarted()) {
pausePulses();
}
@@ -812,7 +816,7 @@ void ee32_process()
p += x; // Add offset
x = total_size % 256; // Size of last bit
if (x == 0) // Last bit empty
{
{
x = 256;
p -= x;
eeAddress -= x;