mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 07:49:52 +03:00
don't auto-install if on Tasmota
This commit is contained in:
@@ -60,8 +60,10 @@ const Version = () => {
|
|||||||
send: loadData,
|
send: loadData,
|
||||||
error
|
error
|
||||||
} = useRequest(SystemApi.readSystemStatus).onSuccess((event) => {
|
} = useRequest(SystemApi.readSystemStatus).onSuccess((event) => {
|
||||||
// older version of EMS-ESP didn't have the psram set, so we can't do an OTA upgrade
|
// older version of EMS-ESP on 4MB boards, can't use OTA because of SSL support in HttpClient
|
||||||
setDownloadOnly(event.data.psram === undefined);
|
if (event.data.arduino_version.startsWith('Tasmota')) {
|
||||||
|
setDownloadOnly(true);
|
||||||
|
}
|
||||||
setUsingDevVersion(event.data.emsesp_version.includes('dev'));
|
setUsingDevVersion(event.data.emsesp_version.includes('dev'));
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -252,7 +254,12 @@ const Version = () => {
|
|||||||
<Typography color="secondary">Platform</Typography>
|
<Typography color="secondary">Platform</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
<Grid size={{ xs: 8, md: 10 }}>
|
<Grid size={{ xs: 8, md: 10 }}>
|
||||||
<Typography>{getPlatform()}</Typography>
|
<Typography>
|
||||||
|
{getPlatform()}
|
||||||
|
<Typography variant="caption">
|
||||||
|
({data.psram ? '+PSRAM' : '-PSRAM'})
|
||||||
|
</Typography>
|
||||||
|
</Typography>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|
||||||
<Grid size={{ xs: 4, md: 2 }}>
|
<Grid size={{ xs: 4, md: 2 }}>
|
||||||
|
|||||||
Reference in New Issue
Block a user