[sky9x] Logs closed when model changed
This commit is contained in:
+5
-1
@@ -466,6 +466,10 @@ void eeLoadModel(uint8_t id)
|
|||||||
|
|
||||||
if (id<MAX_MODELS) {
|
if (id<MAX_MODELS) {
|
||||||
|
|
||||||
|
#if defined(SDCARD)
|
||||||
|
closeLogs();
|
||||||
|
#endif
|
||||||
|
|
||||||
if (pulsesStarted()) {
|
if (pulsesStarted()) {
|
||||||
pausePulses();
|
pausePulses();
|
||||||
}
|
}
|
||||||
@@ -812,7 +816,7 @@ void ee32_process()
|
|||||||
p += x; // Add offset
|
p += x; // Add offset
|
||||||
x = total_size % 256; // Size of last bit
|
x = total_size % 256; // Size of last bit
|
||||||
if (x == 0) // Last bit empty
|
if (x == 0) // Last bit empty
|
||||||
{
|
{
|
||||||
x = 256;
|
x = 256;
|
||||||
p -= x;
|
p -= x;
|
||||||
eeAddress -= x;
|
eeAddress -= x;
|
||||||
|
|||||||
Reference in New Issue
Block a user