Compare commits
	
		
			2 Commits
		
	
	
		
			master
			...
			bugfix_mas
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						
						
							
						
						8ee6fa24d9
	
				 | 
					
					
						|||
| 
						
						
							
						
						786c4332ee
	
				 | 
					
					
						
@@ -3319,22 +3319,15 @@ void hwapi::sys_restoreDeviceParameter(struct T_devices *deviceSettings) const
 | 
			
		||||
    // attention: only applies if function "sys_sendDeviceParameter()" was used to send this settings before
 | 
			
		||||
    //          cannot be used to see settings programmed by JsonFile
 | 
			
		||||
    uint8_t buf[64];
 | 
			
		||||
    uint8_t LL, nn;
 | 
			
		||||
    uint8_t LL;
 | 
			
		||||
    tslib_strclr(buf,0,64);
 | 
			
		||||
    uint8_t *start;
 | 
			
		||||
 | 
			
		||||
    //runProcess->epi_restore64BdevParameter(&LL, buf); // wozu die???
 | 
			
		||||
    epi_restoreRbDeviceSettings(&LL, buf);      // viel besser, stimmt immer
 | 
			
		||||
 | 
			
		||||
    // Puffer in struct eintragen:
 | 
			
		||||
    start = &deviceSettings->kindOfPrinter;
 | 
			
		||||
    nn=0;
 | 
			
		||||
    do
 | 
			
		||||
    {
 | 
			
		||||
        *start = buf[nn];
 | 
			
		||||
        start++;
 | 
			
		||||
    } while(++nn<LL);
 | 
			
		||||
    Q_STATIC_ASSERT(sizeof(*deviceSettings) <= sizeof(buf));
 | 
			
		||||
 | 
			
		||||
    memcpy(deviceSettings, buf, sizeof(*deviceSettings));
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
bool hwapi::sys_areDCdataValid(void) const
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user