mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-23 09:56:34 +02:00
Compare commits
No commits in common. "d6b650147a24770018334dc20ccd65293fff5deb" and "61bec81c44e4b128eeace39022576439a376af29" have entirely different histories.
d6b650147a
...
61bec81c44
1 changed files with 2 additions and 9 deletions
|
@ -195,7 +195,7 @@ namespace adapters;
|
|||
'sendsms',
|
||||
'TEXT',
|
||||
escapeshellarg($destination),
|
||||
'-textutf8',
|
||||
'-text',
|
||||
escapeshellarg($text),
|
||||
'-validity',
|
||||
'MAX',
|
||||
|
@ -339,8 +339,6 @@ namespace adapters;
|
|||
return true;
|
||||
}
|
||||
|
||||
// The command returns 123 on failed execution (even if SIM is already unlocked), and returns 0 if unlock was successful
|
||||
// We can directly return true if command was succesful
|
||||
$command_parts = [
|
||||
'LC_ALL=C',
|
||||
'gammu',
|
||||
|
@ -352,13 +350,8 @@ namespace adapters;
|
|||
];
|
||||
|
||||
$result = $this->exec_command($command_parts);
|
||||
if (0 === $result['return'])
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
//Check security status
|
||||
// The command returns 0 regardless of the SIM security state
|
||||
$command_parts = [
|
||||
'LC_ALL=C',
|
||||
'gammu',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue