add callback call that was missing to the deleteMessage function

done

On Tue, Sep 9, 2014 at 7:37 PM, Emil Sedgh <notifications@github.com> wrote:

> In lib/modem.js:
>
> > @@ -351,6 +351,7 @@ var createModem = function() {
> >
> >      modem.deleteMessage = function(index, cb) {
> >          modem.execute('AT+CMGD='+index);
> > +        if (cb) cb();
>
> This has two issues:
> 1) When callback is called, delete command has not been executed yet
> 2) Callee could not do any error check.
>
> Proper patch would be like this:
>
> modem.deleteMessage = function(index, cb) {
>          modem.execute('AT+CMGD='+index, cb);}
>
> Please change it and I'll merge immediately.
> Thanks.
>
> --
> Reply to this email directly or view it on GitHub
> <https://github.com/emilsedgh/modem/pull/8/files#r17315619>.
>