diff --git a/tools/others.py b/tools/others.py index d54ca02..d552f93 100644 --- a/tools/others.py +++ b/tools/others.py @@ -1296,12 +1296,7 @@ class camera(object): self.brightness = True self.__update_brightness(brightness=brightness) - elif flag_night == False and brightness == 0: - - #Como no es de noche, mantenemos el brillo seteado a 0. - self.brightness = False - self.__update_brightness(brightness=0) - elif flag_night == True and brightness == 0: + elif brightness == 0: self.brightness = False self.__update_brightness(brightness=0) except: diff --git a/tools/pub.py b/tools/pub.py index 92c14de..c7322f7 100644 --- a/tools/pub.py +++ b/tools/pub.py @@ -474,9 +474,9 @@ class manage_lahares(object): self.path_save_json = os.path.join(self.path_save,'json') - self.semaphore = threading.Semaphore(1) - self.semaphore_estimator = threading.Semaphore(1) - self.semaphore_get_video = threading.Semaphore(1) + self.semaphore = threading.Semaphore() + self.semaphore_estimator = threading.Semaphore() + self.semaphore_get_video = threading.Semaphore() self.manager = Manager() self.queue = self.manager.Queue()