?

Log in

No account? Create an account

Previous Web | Next Web

well...



well that went about as well as i expected... big code change = big chance for code to not work....

to be fair, it *generally* works... it *does* detect a fault and attempt to reset itself... but then things get screwy... ok... the first problem is that I didn't put in the line to tell the code where to go when it attempted to restart... so it was just sitting in an odd state doing not-much... so then i took a random guess at what i'd intended to do... which looks to have been the wrong guess... either that, or (possibly more likely), I changed my mind about how it was going to do this at some point, and didn't implement all the modifications.........

Anyway, basically it means that the 3-strikes-and-you-fail doesn't work... and i have to sit down and work out what i was trying to do back in whenever it was i was last working on this...!

Oh yeah, and it looks like the powerfail recovery code is a waste of time... it seems that in practice, the battery backed-up RAM doesn't preserve the state of the program data through a power failure, no matter how short... which is bloody stupid and f***ing annoying!!

So now I'm trying to figure out if I can use the one spare output and one of the 4 spare inputs, plus a relay of some sort (i'm thinking a sort of push-push switch affair) to just give me one bit of "powerfail rideable" memory... if I can acheieve even that tiny bit of storage, then I can design my way around the other bits, although it does mean that the current code (that uses about 4 internal memory bits to figure out what its going to do) would have to be almost entirely thrown away.... still, it might just work.......

But really, is it that hard? There's a battery in there, and its saving some stuff already...

And having just said all of that, I've just had a little thought... I wonder what would happen if I used a %MW (memory word) rather than an %M (memory bit)... hmmm..... there'd be some work involved in changing it, but still... if it worked, it would be easier than chasing the electrician down just to check if I'm allowed to do something I'm 99.9% certain I can.... (nevermind the lead time on getting the parts, etc)

OK, so I have a plan (allegedly... ;-) ). Wow. (yes, there's a quote in there, but I can't be bothered... just think The A Team....!)

So yeah, all in all, not a very productive day really -sigh-