def receivedSetting(self, message):
     '''
     This parses a settings report from the machine, usually received in 
     response to a $$ request.  If the value received does not match the 
     expected value.
     '''
     parameter, position = self.parseFloat(message, 0)
     value, position = self.parseFloat(message, position)
     if (parameter is not None and value is not None):
         maslowSettings.syncFirmwareKey(int(parameter), value, self.data)
Пример #2
0
 def receivedSetting(self, message):
     '''
     This parses a settings report from the machine, usually received in 
     response to a $$ request.  If the value received does not match the 
     expected value.
     '''
     parameter, position = self.parseFloat(message, 0)
     value, position = self.parseFloat(message, position)
     if (parameter is not None and value is not None):
         maslowSettings.syncFirmwareKey(int(parameter), value, self.data)
Пример #3
0
 def receivedSetting(self, message):
     '''
     This parses a settings report from the machine, usually received in 
     response to a $$ request.  If the value received does not match the 
     expected value.
     '''
     parameter, position = self.parseFloat(message, 0)
     value, position = self.parseFloat(message, position)
     if (parameter is not None and value is not None):
         pu = maslowSettings.syncFirmwareKey(int(parameter), value,
                                             self.data)
         if pu is not None:
             pu.data = self.data
             pu.bind(on_dismiss=self.loadNextFwSyncPopup)
             self.fwSyncPopupList.append(pu)
             if len(self.fwSyncPopupList) == 1:
                 self.fwSyncPopupList[0].open()