X-Git-Url: https://oss.titaniummirror.com/gitweb/?a=blobdiff_plain;f=tos%2Fchips%2Fstm25p%2FStm25pLogP.nc;h=e454de79d88c27d03d5b8dafb4aca2e937632343;hb=a0827cb169ae23fc39cb82fcb0c33b2c52b4eabc;hp=35c1cb701acbc1f4527a2f2810402b84dc798717;hpb=7887f8ac8e8b2c49e9c3822459366656538d32dc;p=tinyos-2.x.git diff --git a/tos/chips/stm25p/Stm25pLogP.nc b/tos/chips/stm25p/Stm25pLogP.nc index 35c1cb70..e454de79 100644 --- a/tos/chips/stm25p/Stm25pLogP.nc +++ b/tos/chips/stm25p/Stm25pLogP.nc @@ -161,7 +161,7 @@ implementation { // don't allow appends larger than maximum record size if ( len > MAX_RECORD_SIZE ) - return ESIZE; + return EINVAL; // move to next block if current block doesn't have enough space if ( sizeof( m_header ) + len > bytes_left )