kopia lustrzana https://github.com/meshtastic/firmware
				
				
				
			Fix missed #if defined() logic
							rodzic
							
								
									d10b1e1d00
								
							
						
					
					
						commit
						1ca2923658
					
				|  | @ -48,6 +48,7 @@ class ButtonThread : public concurrency::OSThread | |||
|     // callback returns the period for the next callback invocation (or 0 if we should no longer be called)
 | ||||
|     ButtonThread() : OSThread("Button") | ||||
|     { | ||||
| #if defined(ARCH_RASPBERRY_PI) || defined(BUTTON_PIN) | ||||
| #if defined(ARCH_RASPBERRY_PI) | ||||
|         if (settingsMap.count(user) != 0 && settingsMap[user] != RADIOLIB_NC) | ||||
|             userButton = OneButton(settingsMap[user], true, true); | ||||
|  | @ -72,6 +73,7 @@ class ButtonThread : public concurrency::OSThread | |||
| #else | ||||
|         wakeOnIrq(config.device.button_gpio ? config.device.button_gpio : BUTTON_PIN, FALLING); | ||||
| #endif | ||||
| #endif | ||||
| #ifdef BUTTON_PIN_ALT | ||||
|         userButtonAlt = OneButton(BUTTON_PIN_ALT, true, true); | ||||
| #ifdef INPUT_PULLUP_SENSE | ||||
|  | @ -223,4 +225,4 @@ class ButtonThread : public concurrency::OSThread | |||
|     } | ||||
| }; | ||||
| 
 | ||||
| } // namespace concurrency
 | ||||
| } // namespace concurrency
 | ||||
|  |  | |||
		Ładowanie…
	
		Reference in New Issue
	
	 Jonathan Bennett
						Jonathan Bennett