File tree Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Expand file tree Collapse file tree 3 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -169,7 +169,7 @@ void TaskManager::cancelTask(taskid_t taskId) {
169169void  TaskManager::yieldForMicros (uint32_t  microsToWait) {
170170	yield ();
171171
172- 	auto *  prevTask = runningTask;
172+ 	auto &  prevTask = runningTask;
173173	unsigned  long  microsStart = micros ();
174174	do  {
175175        runLoop ();
Original file line number Diff line number Diff line change @@ -287,7 +287,7 @@ class TaskManager {
287287     * store this pointer. 
288288     * @return a temporary pointer to the running task that lasts as long as it is running. 
289289     */  
290-     tm_internal::TimerTaskAtomicPtr getRunningTask () { return  runningTask; }
290+     const   tm_internal::TimerTaskAtomicPtr&  getRunningTask () { return  runningTask; }
291291
292292private: 
293293    /* *
Original file line number Diff line number Diff line change 11
22#include  < Arduino.h> 
33#include  < AUnit.h> 
4+ #include  < Wire.h> 
45
56using  namespace  aunit ; 
67
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments