0功率不显示

This commit is contained in:
祝发冬
2022-10-25 10:04:21 +08:00
parent 2aa126ced3
commit 2a301d8115
3 changed files with 6 additions and 4 deletions
@@ -184,7 +184,7 @@
}
self.controlBtn.hidden=NO;
self.cameraBtn.hidden=NO;
self.cameraBtn.hidden=YES;
[self.controlBtn setTitle:@"一键喂鱼" forState:UIControlStateNormal];
[self.controlBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor lightGrayColor]] forState:UIControlStateNormal];
[self.controlBtn setBackgroundImage:[CommonUtils createImageWithColor:[UIColor cyanColor]] forState:UIControlStateSelected];
@@ -454,7 +454,9 @@
}
else if ([self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO4F]||[self.currentDevice.type isEqualToString:DECICE_TYPE_XUANDUO5F])
{
[self.cameraBtn setTitle:[NSString stringWithFormat:@"%ldw",[dataContorl hexToTen:self.dataModel.powerRating]] forState:UIControlStateNormal];
NSInteger rate = [dataContorl hexToTen:self.dataModel.powerRating];
[self.cameraBtn setTitle:[NSString stringWithFormat:@"%ldw",rate] forState:UIControlStateNormal];
self.cameraBtn.hidden=rate>0?NO:YES;
if ([self.dataModel.fishFeedStatus isEqualToString:@"01"])
{
self.controlBtn.selected=YES;
BIN
View File
Binary file not shown.