File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ void canCurrentLimTX();
36
36
37
37
38
38
39
- EventQueue queue (32 *EVENTS_EVENT_SIZE); // creates an eventqueue which is thread and ISR safe. EVENTS_EVENT_SIZE is the size of the buffer allocated
39
+ EventQueue queue (32 *EVENTS_EVENT_SIZE);// creates an eventqueue which is thread and ISR safe. EVENTS_EVENT_SIZE is the size of the buffer allocated
40
40
41
41
42
42
@@ -100,7 +100,6 @@ int main() {
100
100
BMSThread bmsThread (ltcBus, 1 , bmsMailbox, mainToBMSMailbox);
101
101
bmsThreadThread.start (callback (&BMSThread::startThread, &bmsThread));
102
102
103
- std::array<int8_t , BMS_BANK_COUNT * BMS_BANK_TEMP_COUNT> allTemps;
104
103
osThreadSetPriority (osThreadGetId (), osPriorityHigh7);
105
104
Timer t;
106
105
t.start ();
@@ -197,7 +196,7 @@ int main() {
197
196
// divided by 300 because that's the nominal current reading of the sensor (ie baseline)
198
197
// multiplied by 10 and cast to a uint16 for 1 decimal place
199
198
tsCurrent = ((uint16_t )((current_sense_pin-current_vref_pin)/125.0 ))*10 ;
200
-
199
+
201
200
queue.dispatch_once ();
202
201
ThisThread::sleep_for (50 - (t.read_ms ()%50 ));
203
202
}
You can’t perform that action at this time.
0 commit comments